[apparmor] [patch] Fix the value being set in nt_name when allowed path exist
Kshitij Gupta
kgupta8592 at gmail.com
Mon Aug 25 20:13:20 UTC 2014
Hello,
This patch fixes a bug due to which a hash was incorrectly being set in nt_name
instead of the entry when the allowed path existed. The fixes it so that path
value is set in nt_name as expected.
=== modified file 'utils/apparmor/aa.py'
--- utils/apparmor/aa.py 2014-08-25 20:49:29 +0000
+++ utils/apparmor/aa.py 2014-08-25 21:12:24 +0000
@@ -1127,7 +1127,7 @@
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
Regards,
Kshitij Gupta
More information about the AppArmor
mailing list