[apparmor] [patch] fix LOG_MODE_RE in aamode.py

Christian Boltz apparmor at cboltz.de
Sat Jul 12 19:26:17 UTC 2014


Hello,

this patch fixes two issues in LOG_MODE_RE in aamode.py:
- remove "Ix" (only valid as lowercase "ix")
- add "pux" (was missing before)

=== modified file 'utils/apparmor/aamode.py'
--- utils/apparmor/aamode.py    2014-04-23 21:28:17 +0000
+++ utils/apparmor/aamode.py    2014-07-12 19:25:29 +0000
@@ -67,7 +67,7 @@
              'N': AA_EXEC_NT
              }
 
-LOG_MODE_RE = re.compile('(r|w|l|m|k|a|x|ix|ux|px|cx|nx|pix|cix|Ix|Ux|Px|PUx|Cx|Nx|Pix|Cix)')
+LOG_MODE_RE = re.compile('(r|w|l|m|k|a|x|ix|ux|px|pux|cx|nx|pix|cix|Ux|Px|PUx|Cx|Nx|Pix|Cix)')
 MODE_MAP_RE = re.compile('(r|w|l|m|k|a|x|i|u|p|c|n|I|U|P|C|N)')
 
 def str_to_mode(string):



Regards,

Christian Boltz
-- 
In the beginning was the word, and the word was content-type: text/plain




More information about the AppArmor mailing list