Re: [apparmor] wildcard syntax

2020-01-11 Thread mailing list
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


-- 
AppArmor mailing list
AppArmor@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor


[apparmor] wildcard syntax

2020-01-10 Thread mailing list
Hi there,

does AA understand the ? as a wildcard for single characters?
E.g. VirtualBox seems to want creating temporary files like

$HOME/#45678361

These temp files always start with hash key symbol which may
additionally trouble AA rule?

Would the rule

$HOME/# mrw,

cover the syntax of such temp files? What about the hash key.

Do I need to tell AA to see the hash key/pound symbol only as "plain
symbol"?

Ok, I now tried
$HOME/# mrw,
The pound sign seem to be seen just as plain symbol, as desired.


Thanks!

-- 
AppArmor mailing list
AppArmor@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor


Re: [apparmor] cupsd profile?

2019-12-04 Thread mailing list
Am 03.12.19 um 17:46 schrieb John Johansen:
> On 12/3/19 8:36 AM, mailing list wrote:
>> Hello!
>>
>> When looking with Google, I find a lot discussions about cups and AA,
>> but not the bare cupsd AA profile
>> Can someone point me to the cupsd profile or post the profile here?
>> Thanx!
>>
> 
> The profile on ubuntu lives in the cups-daemon package and there is
> another profile for the browser in the cups-browsed package.
> 
> I have attached both of those profiles.

Thanks! Will take a look at it!




-- 
AppArmor mailing list
AppArmor@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor


[apparmor] cupsd profile?

2019-12-03 Thread mailing list
Hello!

When looking with Google, I find a lot discussions about cups and AA,
but not the bare cupsd AA profile
Can someone point me to the cupsd profile or post the profile here?
Thanx!

-- 
AppArmor mailing list
AppArmor@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor