[apparmor] [patch] severity.py: change rank_capability() to not expect the CAP_ prefix

Steve Beattie steve at nxnw.org
Fri May 29 19:50:24 UTC 2015


On Sun, May 24, 2015 at 03:45:13PM +0200, Christian Boltz wrote:
> this patch changes rank_capability() so that it doesn't expect the CAP_ prefix.
> This makes usage easier because callers can simply hand over the
> capability name.
> 
> Also change rank() to call rank_capability() without the CAP_ prefix.
> 
> [ 15-severity-drop-CAP_prefix.diff ]

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

I'm surprised this didn't require any test changes.

-- 
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/20150529/40732bb8/attachment.pgp>


More information about the AppArmor mailing list