On Tue, Feb 25, 2014 at 12:20:33AM +0100, Christian Boltz wrote: > Hello, > > let me compile 20 minutes of discussions into the addition of a # ;-) > > > Change aa-complain / set_complain() to (only) add the complain flag. > We don't need to additionally create a force-complain symlink.
Acked-by: Steve Beattie <[email protected]> (I could *maybe* see adding a flag to have it create the symlink instead, for use in packaging situations.) > === modified file 'utils/apparmor/aa.py' > --- utils/apparmor/aa.py 2014-02-24 19:56:28 +0000 > +++ utils/apparmor/aa.py 2014-02-24 23:11:32 +0000 > @@ -257,7 +257,8 @@ > def set_complain(filename, program): > """Sets the profile to complain mode""" > aaui.UI_Info(_('Setting %s to complain mode.') % program) > - create_symlink('force-complain', filename) > + # a force-complain symlink is more packaging-friendly, but breaks caching > + # create_symlink('force-complain', filename) > change_profile_flags(filename, program, 'complain', True) > > def set_enforce(filename, program): > -- Steve Beattie <[email protected]> http://NxNW.org/~steve/
signature.asc
Description: Digital signature
-- AppArmor mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
