feat(tunable): add the new @{user} variable
This commit is contained in:
parent
1842f8a4d5
commit
66c8f42d94
4 changed files with 12 additions and 7 deletions
|
|
@ -68,8 +68,8 @@ profile arduino @{exec_path} {
|
||||||
|
|
||||||
/tmp/ r,
|
/tmp/ r,
|
||||||
owner @{tmp}/cc*.{s,res,c,o,ld,le} rw,
|
owner @{tmp}/cc*.{s,res,c,o,ld,le} rw,
|
||||||
owner @{tmp}/hsperfdata_*/ rw,
|
owner @{tmp}/hsperfdata_@{user}/ rw,
|
||||||
owner @{tmp}/hsperfdata_*/@{pid} rw,
|
owner @{tmp}/hsperfdata_@{user}/@{pid} rw,
|
||||||
owner @{tmp}/untitled[0-9]*.tmp rw,
|
owner @{tmp}/untitled[0-9]*.tmp rw,
|
||||||
owner @{tmp}/untitled[0-9]*.tmp/{,**} rw,
|
owner @{tmp}/untitled[0-9]*.tmp/{,**} rw,
|
||||||
owner @{tmp}/console[0-9]*.tmp rw,
|
owner @{tmp}/console[0-9]*.tmp rw,
|
||||||
|
|
|
||||||
|
|
@ -154,8 +154,8 @@ profile hardinfo @{exec_path} {
|
||||||
|
|
||||||
@{sys}/fs/cgroup/{,**} r,
|
@{sys}/fs/cgroup/{,**} r,
|
||||||
|
|
||||||
owner @{tmp}/hsperfdata_*/ rw,
|
owner @{tmp}/hsperfdata_@{user}/ rw,
|
||||||
owner @{tmp}/hsperfdata_*/@{pid} rw,
|
owner @{tmp}/hsperfdata_@{user}/@{pid} rw,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,8 +61,8 @@ profile jdownloader @{exec_path} {
|
||||||
|
|
||||||
owner @{HOME}/.install4j rw,
|
owner @{HOME}/.install4j rw,
|
||||||
|
|
||||||
owner @{tmp}/hsperfdata_*/ rw,
|
owner @{tmp}/hsperfdata_@{user}/ rw,
|
||||||
owner @{tmp}/hsperfdata_*/@{pid} rw,
|
owner @{tmp}/hsperfdata_@{user}/@{pid} rw,
|
||||||
# If the @{JD_INSTALLDIR}/tmp/ dir can't be accessed, the /tmp/ dir will be used instead
|
# If the @{JD_INSTALLDIR}/tmp/ dir can't be accessed, the /tmp/ dir will be used instead
|
||||||
owner @{tmp}/SevenZipJBinding-*/ rw,
|
owner @{tmp}/SevenZipJBinding-*/ rw,
|
||||||
owner @{tmp}/SevenZipJBinding-*/lib7-Zip-JBinding.so mrw,
|
owner @{tmp}/SevenZipJBinding-*/lib7-Zip-JBinding.so mrw,
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,11 @@
|
||||||
# Universally unique identifier
|
# Universally unique identifier
|
||||||
@{uuid}=@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}[-_]@{h}@{h}@{h}@{h}[-_]@{h}@{h}@{h}@{h}[-_]@{h}@{h}@{h}@{h}[-_]@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}
|
@{uuid}=@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}[-_]@{h}@{h}@{h}@{h}[-_]@{h}@{h}@{h}@{h}[-_]@{h}@{h}@{h}@{h}[-_]@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}@{h}
|
||||||
|
|
||||||
|
# Username & group valid characters
|
||||||
|
@{u}=[a-z0-9_]
|
||||||
|
@{user}=[a-z_]{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}{@{u},}
|
||||||
|
@{group}=@{user}
|
||||||
|
|
||||||
# Shortcut for PCI device
|
# Shortcut for PCI device
|
||||||
@{pci_id}=@{h}@{h}@{h}@{h}:@{h}@{h}:@{h}@{h}.@{h}
|
@{pci_id}=@{h}@{h}@{h}@{h}:@{h}@{h}:@{h}@{h}.@{h}
|
||||||
@{pci_bus}=pci@{h}@{h}@{h}@{h}:@{h}@{h}
|
@{pci_bus}=pci@{h}@{h}@{h}@{h}:@{h}@{h}
|
||||||
|
|
@ -48,7 +53,7 @@
|
||||||
# @{MOUNTDIRS} is a space-separated list of where user mount directories
|
# @{MOUNTDIRS} is a space-separated list of where user mount directories
|
||||||
# are stored, for programs that must enumerate all mount directories on a
|
# are stored, for programs that must enumerate all mount directories on a
|
||||||
# system.
|
# system.
|
||||||
@{MOUNTDIRS}=/media/ @{run}/media/*/ /mnt/
|
@{MOUNTDIRS}=/media/ @{run}/media/@{user}/ /mnt/
|
||||||
|
|
||||||
# @{MOUNTS} is a space-separated list of all user mounted directories.
|
# @{MOUNTS} is a space-separated list of all user mounted directories.
|
||||||
@{MOUNTS}=@{MOUNTDIRS}/*/ @{run}/user/@{uid}/gvfs/
|
@{MOUNTS}=@{MOUNTDIRS}/*/ @{run}/user/@{uid}/gvfs/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue