mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +00:00
Fix the value being set in nt_name when allowed path exist
The patch: - sets nt_name to the path, if it is allowed. Acked-by: Christian Boltz <apparmor@cboltz.de> (acked on IRC based on a link to the ML archive[1]) [1] https://lists.ubuntu.com/archives/apparmor/2014-August/006194.html
This commit is contained in:
@@ -1127,7 +1127,7 @@ def handle_children(profile, hat, root):
|
|||||||
nt_name = None
|
nt_name = None
|
||||||
for entr in m:
|
for entr in m:
|
||||||
if aa[profile][hat]['allow']['path'].get(entr, False):
|
if aa[profile][hat]['allow']['path'].get(entr, False):
|
||||||
nt_name = aa[profile][hat]
|
nt_name = entr
|
||||||
break
|
break
|
||||||
if to_name and to_name != nt_name:
|
if to_name and to_name != nt_name:
|
||||||
pass
|
pass
|
||||||
|
Reference in New Issue
Block a user