mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +00:00
activate_repo_profiles(): use change_profile_flags
... instead of set_profile_flags() to keep possibly existing flags like attach_disconnected. Note that this function is unused (meant to be used with the no-longer-existing profile repo), therefore nobody noticed that set_profile_flags() was called with the wrong number of parameters ;-)
This commit is contained in:
@@ -561,7 +561,7 @@ def activate_repo_profiles(url, profiles, complain):
|
||||
write_profile(pname)
|
||||
if complain:
|
||||
fname = get_profile_filename(pname)
|
||||
set_profile_flags(profile_dir + fname, 'complain')
|
||||
change_profile_flags(profile_dir + fname, None, 'complain', True)
|
||||
aaui.UI_Info(_('Setting %s to complain mode.') % pname)
|
||||
except Exception as e:
|
||||
sys.stderr.write(_("Error activating profiles: %s") % e)
|
||||
|
Reference in New Issue
Block a user