Comment 5 for bug 690040

Revision history for this message
Kees Cook (kees) wrote :

Perl? What? No, it should just use the logic all the other services do. For example:

pre-start script
    [ -d /sys/module/apparmor ] || exit 0
    [ -x /sbin/apparmor_parser ] || exit 0
    /sbin/apparmor_parser -r -W /etc/apparmor.d/usr.sbin.avahi-daemon || true
end script

There will be a helper for this in natty soon, but for maverick, something like above should be backported. There are no plans to move apparmor wholesale into /etc/init because blocking on it for everything would slow too much down. Instead, individual services are responsible for loading their profiles in their init scripts.