[apparmor] [patch 17/12] v3 unix socket rules

Seth Arnold seth.arnold at canonical.com
Thu Sep 4 18:52:30 UTC 2014


On Thu, Sep 04, 2014 at 09:19:53AM -0700, John Johansen wrote:
> Fix the permission encoding output of getopt/setopt
> 
> Signed-off-by: John Johansen <john.johansen at canonical.com>

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

Thanks

> 
> ---
> 
> === modified file 'parser/af_unix.cc'
> --- parser/af_unix.cc	2014-08-31 17:15:54 +0000
> +++ parser/af_unix.cc	2014-09-04 16:12:04 +0000
> @@ -385,7 +385,7 @@
>  			tmp << "..";
>  			buf = tmp.str();
>  			if (!prof.policy.rules->add_rule(buf.c_str(), deny,
> -							 map_perms(AA_NET_OPT),
> +							 map_perms(mask & AA_NET_OPT),
>  							 map_perms(audit & AA_NET_OPT),
>  							 dfaflags))
>  				goto fail;
> 
> 
> 
> -- 
> AppArmor mailing list
> AppArmor at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
> 
-------------- 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/20140904/b91ad70e/attachment.pgp>


More information about the AppArmor mailing list