2
0
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:
Christian Boltz
2018-07-13 22:54:49 +02:00
parent d5e72d2ef2
commit 9d78694b00

View File

@@ -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)