[apparmor] [PATCH 3/3] Fix: Expansion of profile name when it contains aare characters
Steve Beattie
steve at nxnw.org
Thu Jun 18 22:52:57 UTC 2015
On Wed, Jun 17, 2015 at 04:21:13AM -0700, John Johansen wrote:
> When @{profile_name} is used within a rule matching expression any
> aare expressions should be matched literally and not be interpreted as
> aare.
>
> That is
> profile /foo/** { }
>
> needs /foo/** to expand into a regular expression for its attachment
> but, /foo/** is also the profiles literal name. And when trying to
> match @{profile_name} in a rule, eg.
> ptrace @{profile_name},
>
> the variable needs to be expaned to
> ptrace /foo/\*\*,
>
> not
> ptrace /foo/**,
>
> that is currently happening.
What happens if someone for example writes a profile for /usr/bin/[ ?
> BugLink: http://bugs.launchpad.net/bugs/1317555
>
> equality tests by
> Tyler Hicks <tyhicks at canonical.com>
--
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/20150618/867d342d/attachment.pgp>
More information about the AppArmor
mailing list