mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
Let aa-complain delete the disable symlink
aa-complain is part of the enforce/complain/disable triple. Therefore I expect it to actually load a profile in complain mode. To do this, it has to delete the 'disable' symlink, but set_complain() in aa.py didn't do this (and therefore kept the profile disabled). Acked-by: Kshitij Gupta <kgupta8592@gmail.com>
This commit is contained in:
@@ -284,6 +284,7 @@ def set_complain(filename, program):
|
||||
aaui.UI_Info(_('Setting %s to complain mode.') % (filename if program is None else program))
|
||||
# a force-complain symlink is more packaging-friendly, but breaks caching
|
||||
# create_symlink('force-complain', filename)
|
||||
delete_symlink('disable', filename)
|
||||
change_profile_flags(filename, program, 'complain', True)
|
||||
|
||||
def set_enforce(filename, program):
|
||||
|
Reference in New Issue
Block a user