/etc/init/click-apparmor.conf is in click-apparmor 0.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | description "Refresh Click Apparmor profiles if system policy changed"
author "Jamie Strandboge <jamie@ubuntu.com>"
start on filesystem
task
script
run=
# If packages for system policy that affect click packages have been
# updated since the last time we ran, run aa-clickhook -f
for pkg in apparmor-easyprof-ubuntu apparmor ; do
[ -f "/var/lib/dpkg/info/${pkg}.md5sums" ] || continue
if ! diff -q "/var/lib/dpkg/info/${pkg}.md5sums" "/var/lib/apparmor/profiles/.${pkg}.md5sums" 2>/dev/null ; then
# store md5sums in /var/lib/apparmor/profiles since
# /var/cache/apparmor might be cleared by apparmor
cp -f "/var/lib/dpkg/info/${pkg}.md5sums" "/var/lib/apparmor/profiles/.${pkg}.md5sums"
run='yes'
fi
done
if [ -n "$run" ]; then
aa-clickhook -f
fi
end script
|