[apparmor] [patch] [19/38] Add support for editing paths to FileRule

Steve Beattie steve at nxnw.org
Thu Sep 22 20:40:35 UTC 2016


On Fri, Aug 12, 2016 at 10:58:32PM +0200, Christian Boltz wrote:
> $subject.
> 
> This means adding
> - self.can_edit - True if editing via '(N)ew' should be possible (will
>   be False for bare file rules)
> - edit_header() - returns the prompt text and the current path
> - validate_edit() - checks if the new path matches the original one
> - store_edit() - changes the path to the new one (even if it doesn't
>   match the old one)
> 
> self.can_edit and the 3 functions are also added to BaseRule:
> - can_edit is False by default
> - the functions raise a NotImplementedError
> 
> Also add tests for the added code.
> 
> [ 19-add-support-for-editing-paths-to-FileRule.diff ]

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


-- 
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/20160922/628a6246/attachment.pgp>


More information about the AppArmor mailing list