mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
Add abi rule when creating a new profile
When aa-autodep or aa-genprof create a new profile, always add an abi rule. (Hardcoded to <abi/3.0> for now to keep things simple.)
This commit is contained in:
@@ -578,6 +578,8 @@ def autodep(bin_name, pname=''):
|
||||
else:
|
||||
active_profiles.add_profile(file, pname, attachment)
|
||||
|
||||
if os.path.isfile(profile_dir + '/abi/3.0'):
|
||||
active_profiles.add_abi(file, AbiRule('abi/3.0', False, True))
|
||||
if os.path.isfile(profile_dir + '/tunables/global'):
|
||||
active_profiles.add_inc_ie(file, IncludeRule('tunables/global', False, True))
|
||||
write_profile_ui_feedback(pname)
|
||||
|
Reference in New Issue
Block a user