On Fri, Aug 12, 2016 at 11:07:41PM +0200, Christian Boltz wrote: > rank() in severity.py is a dispatcher that calls the needed function > (rank_path(), rank_capability() based on the parameter. Since all > calling code knows what rule type it is handling, this dispatcher is > superfluous - the calling code can call rank_path() or rank_capability() > directly. > > This patch drops rank() and switches the remaining users of rank() to > call the rank_*() functions directly. For the tests, this means to drop > the CAP_ prefix because rank_capability doesn't expect this prefix. > > [ 37-drop-severity-rank.diff ]
Acked-by: Steve Beattie <[email protected]>. Thanks. -- Steve Beattie <[email protected]> http://NxNW.org/~steve/
signature.asc
Description: PGP signature
-- AppArmor mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
