[apparmor] wildcard syntax
mailing list
mailinglisten at posteo.de
Sun Jan 12 00:48:21 UTC 2020
At 11.01.20 12:31 John Johansen told us:
> On 1/10/20 9:38 PM, mailing list wrote:
>> Hi there,
>>
>> does AA understand the ? as a wildcard for single characters?
>> E.g. VirtualBox seems to want creating temporary files like
>>
>> $HOME/#45678361
>> (...)
>
> $HOME is not a valid apparmor path expansion variable. You would use
>
> @{HOME}/#???????? mrw,
>
> The apparmor globbing syntax uses
> * - match zero or more of anything up to but not including the directory / it is roughly equivalent to pcre [^/\x00]*
> ** - match zero or more of anything including traversing directory / it is roughly equivalent to pcre [^\x00]*
> [] - character class
> [^] - inverted character class
> ? - any single character not including the directory / which is a pcre [^/\00]
> {,} - alternation pcre (|)
> \ is used as an escape to encode special characters
>
> # is not a special character.
Thanks.
Actually, man 5 apparmor.d explains the globbing. I just wasn´t sure
about the pound sign.
Thanks
More information about the AppArmor
mailing list