[apparmor] [patch] fix hasher usage for interpreter path in handle_children

Steve Beattie steve at nxnw.org
Wed Nov 26 22:42:39 UTC 2014


On Wed, Nov 26, 2014 at 09:33:53PM +0100, Christian Boltz wrote:
> Hello,
> 
> this patch fixes the usage of the aa hasher in aa.py handle_children() - 
> for interpreters, it used 
>     aa[profile][hat]['path'][interpreter_path]['mode']
> instead of
>     aa[profile][hat]['allow']['path'][interpreter_path]['mode']
> 
> The ['allow'] part was missing.
> 
> Note that the interpreter is already added in create_new_profile, which 
> explains why even the buggy code included the interpreter in the profile.
> (That could also mean that we don't need the interpreter stuff in 
> handle_children(), but that's another question that needs to be checked 
> carefully. And that means "not part of this patch" ;-)

Acked-by: Steve Beattie <steve at nxnw.org>

Thanks.


-- 
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20141126/02f34ca1/attachment.pgp>


More information about the AppArmor mailing list