[apparmor] [patch] Update RlimitRule to match the parser changes

Steve Beattie steve at nxnw.org
Sat Jul 11 05:26:25 UTC 2015


On Thu, Jul 09, 2015 at 10:48:51PM +0200, Christian Boltz wrote:
> Hello,
> 
> this patch updates RlimitRule to match the parser changes in John's patch:
> - allow only a specific set of time units
> - optionally allow whitespace between rlimit value and unit
> - move check for invalid time units to time_to_int()
> 
> Also update the tests:
> - add several tests with whitespace between value and unit
> - change a test that used the (now invalid) "1m" to "1min"
> - change the time_to_int() tests to use 'us' as default unit, and add
>   a test with 'seconds as default unit
> 
> [ 71-update-rlimit-rule-for-parser-changes.diff ]

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/20150710/e29eb460/attachment.pgp>


More information about the AppArmor mailing list