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

Seth Arnold seth.arnold at canonical.com
Mon Jul 14 17:50:23 UTC 2014


On Sat, Jul 12, 2014 at 09:26:17PM +0200, Christian Boltz wrote:
> 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):

Acked-by: Seth Arnold <seth.arnold at canonical.com>

Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20140714/ba3a4ec0/attachment.pgp>


More information about the AppArmor mailing list