On 07/07/2019 07:44, Robert Nichols wrote:
On 7/7/19 1:35 AM, Robin Laing wrote:
I cannot find out in anything I have searched what the syntax
description for the two directories under this policy.
/home/[^]+/\.cache/thumbnail(/.*)?
/home/[^]+/\.thumbnail(/.*)?
So, does the [^] mean the "user" home directory?
Does the + mean this directory? or something else?
Those expressions should be:
/home/[^/]+/\.cache/thumbnail(/.*)?
/home/[^/]+/\.thumbnail(/.*)?
Note the added "/" following the "^" in the bracket expression, which
now matches any single character that is NOT "/". The following "+"
means to match one or more occurrences of the preceding atom.
It's all described in "man 7 regex". The policy compiler is using
"extended regex".
Thanks. In the hours of looking, not once did I see a reference to
regex. Never even thought of that. Now I have a direction to go.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx