[apparmor] [patch] raise exception if sub_str_to_mode() is called with invalid mode string (was: Re: [patch] add tests for aamode.py)

Steve Beattie steve at nxnw.org
Mon Feb 2 23:18:58 UTC 2015


On Mon, Dec 22, 2014 at 07:24:19PM +0100, Christian Boltz wrote:
> Raise an exception if sub_str_to_mode() is called with invalid mode 
> string or if a mode_char is not in MODE_HASH.
> 
> Also update the testcase for "asdf42" (which raises AppArmorBug now) and
> add a test that simulates MODE_HASH and MODE_MAP_SET getting out of 
> sync (tests the second part of the if condition).

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/20150202/ea699949/attachment.pgp>


More information about the AppArmor mailing list