[apparmor] [patch] [33/38] Add cleanup flag to *Ruleset.add()

Steve Beattie steve at nxnw.org
Tue Sep 27 21:33:49 UTC 2016


On Tue, Sep 27, 2016 at 11:30:04PM +0200, Christian Boltz wrote:
> Am Freitag, 12. August 2016, 23:06:08 CEST schrieb Christian Boltz:
> > [ 33-ruleset-cleanup-duplicates-on-add.diff ]
> > 
> > === modified file ./utils/apparmor/rule/__init__.py
> 
> > -    def add(self, rule):
> > -        '''add a rule object'''
> > +    def add(self, rule, cleanup=False):
> > +        '''add a rule object
> > +           if cleanup is specified, delete rules that are covered by the new rules
> 
> I noticed a typo here - it should be "... the new rule", not "... the new rule_s_"
> (only one rule gets added when add() is called).
> 
> If nobody objects, I'll fix this little typo before commiting.

Please do. 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: not available
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20160927/6d1f077b/attachment.pgp>


More information about the AppArmor mailing list