[apparmor] [patch] Fix typo in CapabilityRule exception message

Seth Arnold seth.arnold at canonical.com
Fri Apr 17 21:13:12 UTC 2015


On Fri, Apr 17, 2015 at 10:47:39PM +0200, Christian Boltz wrote:
> Hallo,
> 
> see $subject ;-)
> 
> [ capability-rule-fix-typo.diff ]

Acked-by: Seth Arnold <seth.arnold at canonical.com>
Acked for both 2.9 and trunk as needed.

See? I _do_ review Python patches!

Thanks

> === modified file 'utils/apparmor/rule/capability.py'
> --- utils/apparmor/rule/capability.py   2015-01-16 13:59:49 +0000
> +++ utils/apparmor/rule/capability.py   2015-04-17 20:33:17 +0000
> @@ -114,7 +114,7 @@
>          '''compare if rule-specific variables are equal'''
>  
>          if not type(rule_obj) == CapabilityRule:
> -            raise AppArmorBug('Passes non-capability rule: %s' % str(rule_obj))
> +            raise AppArmorBug('Passed non-capability rule: %s' % str(rule_obj))
>  
>          if (self.capability != rule_obj.capability
>                  or self.all_caps != rule_obj.all_caps):
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20150417/a305378d/attachment.pgp>


More information about the AppArmor mailing list