[apparmor] [patch] convert RE_PROFILE_BARE_FILE_ENTRY to named match groups

Steve Beattie steve at nxnw.org
Wed Oct 8 14:12:22 UTC 2014


On Wed, Oct 08, 2014 at 12:37:21PM +0200, Christian Boltz wrote:
> Hello,
> 
> Am Dienstag, 7. Oktober 2014 schrieb Steve Beattie:
> > Will you be converting RE_PROFILE_PATH_ENTRY handling soon?
> 
> Depends on my free time and your definition of "soon" ;-)
> 
> The interesting part about RE_PROFILE_PATH_ENTRY will be the filename. 
> I'll split it out to RE_FILENAME, but there are other REs that also 
> contain a filename (for example RE_PROFILE_LINK and, more interesting, 
> RE_PROFILE_START), so I have to make sure they also work with 
> RE_FILENAME.

Well, I would take a partial conversion that made use of the
RE_AUDIT_DENY and RE_OWNER regex groups and parse_audit_allow()
for the former. That would seem to be straightforward.

-- 
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/20141008/a8d83aa6/attachment.pgp>


More information about the AppArmor mailing list