2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-30 05:47:59 +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:
Kshitij Gupta 2014-08-26 03:13:42 +05:30
parent a620f18cf0
commit 9e37c3278e

View File

@ -1127,7 +1127,7 @@ def handle_children(profile, hat, root):
nt_name = None
for entr in m:
if aa[profile][hat]['allow']['path'].get(entr, False):
nt_name = aa[profile][hat]
nt_name = entr
break
if to_name and to_name != nt_name:
pass