mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
ask_exec(): drop useless setting of profile and hat
profile and hat don't get used in the following lines, and later get overwritten in the next round of the for loop. The deleted code was last useful for setting the (dropped) profile_changes array.
This commit is contained in:
@@ -1145,9 +1145,6 @@ def ask_exec(hashlog):
|
||||
elif re.search('^CMD_(px|nx|pix|nix)', ans):
|
||||
if to_name:
|
||||
exec_target = to_name
|
||||
if aamode == 'PERMITTING':
|
||||
profile = exec_target
|
||||
hat = exec_target
|
||||
|
||||
# Check profile exists for px
|
||||
if not os.path.exists(get_profile_filename_from_attachment(exec_target, True)):
|
||||
|
Reference in New Issue
Block a user