Bugzilla – Bug 157373
/etc/init.d/boot.apparmor try-restart reloads profiles when apparmor is stopped
Last modified: 2008-09-02 18:07:44 UTC
/etc/init.d/boot.apparmor try-restart will load apparmor profiles even if apparmor is in the 'stopped' state: dhcp-81:/var/log/audit # rcapparmor stop Shutting down AppArmor Event daemon done Unloading AppArmor profiles done dhcp-81:/var/log/audit # rcapparmor try-restart OWLSM extension not supported by this version of AppArmor. warning Reloading AppArmor profiles done Shutting down AppArmor Event daemon failed Starting AppArmor Event daemon done dhcp-81:/var/log/audit # rcapparmor status apparmor module is loaded. 49 profiles are loaded. 49 profiles are in enforce mode. 0 profiles are in complain mode. Out of 63 processes running: 0 processes have profiles defined. 0 processes have profiles in enforce mode. 0 processes have profiles in complain mode. dhcp-81:/var/log/audit #
Pending info from dreynolds (passing proposal for new init script to aj/kukuk). Would like to pull aa-eventd into its own initscript prior to addressing this issue. Will reduce the complexity of this code to decompose the startup of these two programs (apparmor, aa-eventd).
try-restart when the module is loaded but policy is not should *not* load policy.
Seth can you pick this up? the eventd rework is done.
Yeah. Thankfully, it's a little less pressing; the whole point of wanting try-restart "immediately" was so that the reporting code in yast could easily force the event daemon to reload its configuration file. Splitting it into its own init script has reduced the need for this feature. (Though it would still be nice to do.)
Move this to openSUSE 10.3, as we don't really intend to release this for older versions. (It'll be a scramble to get it done for 10.3 in fact.)
I'll take this bug and see if I can't knock it off. With the inclusion of aa_status, it shouldn't be hard to detect we're in the equivalent of a "stopped" state.
Will adress post 10.3
Because the LATER and REMIND resolutions have been removed, the resolution of this bug has changed from LATER to WONTFIX. If this bug needs to be reconsidered, reopen it and set a future "Target Milestone for Fix."