2
0
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:
Christian Boltz
2019-05-08 21:46:30 +02:00
parent 3ec4869adf
commit 5953ac3dda

View File

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