What if the test was changed to check writability of path_max? Just
changing the the check for the sysfs path to -w won't work for root, but
maybe something like this (perhaps there's a simpler way to do the check
though):
if [[ -f /sys/module/apparmor/parameters/path_max &&
$(stat -c "%a" /sys/module/apparmor/parameters/path_max) == "600" ]] ;
then
buf_max=2048 #standard x86 page size/2
old_max=`cat /sys/module/apparmor/parameters/path_max`
echo $buf_max > /sys/module/apparmor/parameters/path_max
else
echo "WARNING: This version of AppArmor does not support changing
buffer size."
fi
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1692543
Title:
Regression tests cannot write to apparmor path_max module parameter in
artful/4.11
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1692543/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs