diff --git a/utils/apparmor/aa.py b/utils/apparmor/aa.py index 0eb0cdc27..262733fab 100644 --- a/utils/apparmor/aa.py +++ b/utils/apparmor/aa.py @@ -643,11 +643,6 @@ def change_profile_flags(prof_filename, program, flag, set_flag): newflags = ', '.join(add_or_remove_flag(old_flags, flag, set_flag)) if profile == program or program is None: - profile_glob = AARE(matches['attachment'], True) - else: - profile_glob = AARE(matches['profile'], False) # named profiles can come without an attachment path specified ("profile foo {...}") - - if (program is not None and profile_glob.match(program)) or program is None or program == matches['profile']: found = True header_data = { 'attachment': matches['attachment'] or '',