feat(profile): use the @{pci} varibale when possible.
This commit is contained in:
parent
013f1c5a83
commit
bb947318a5
83 changed files with 168 additions and 170 deletions
|
|
@ -109,7 +109,7 @@ profile calibre @{exec_path} {
|
|||
|
||||
owner /dev/shm/#@{int} rw,
|
||||
|
||||
@{sys}/devices/pci[0-9]*/**/irq r,
|
||||
@{sys}/devices/@{pci}/irq r,
|
||||
|
||||
@{PROC}/ r,
|
||||
@{PROC}/@{pids}/net/route r,
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ profile discord @{exec_path} {
|
|||
deny @{sys}/devices/virtual/tty/tty[0-9]/active r,
|
||||
# To remove the following error:
|
||||
# pcilib: Cannot open /sys/bus/pci/devices/0000:03:00.0/irq: Permission denied
|
||||
@{sys}/devices/pci[0-9]*/**/irq r,
|
||||
@{sys}/devices/@{pci}/irq r,
|
||||
|
||||
deny /dev/ r,
|
||||
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ profile freetube @{exec_path} {
|
|||
# To remove the following error:
|
||||
# pcilib: Cannot open /sys/bus/pci/devices/0000:03:00.0/irq: Permission denied
|
||||
# The irq file is needed to render pages.
|
||||
deny @{sys}/devices/pci[0-9]*/**/irq r,
|
||||
deny @{sys}/devices/@{pci}/irq r,
|
||||
|
||||
/var/lib/dbus/machine-id r,
|
||||
/etc/machine-id r,
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ profile signal-desktop @{exec_path} {
|
|||
|
||||
@{run}/systemd/inhibit/*.ref rw,
|
||||
|
||||
@{sys}/devices/pci[0-9]*/**/{irq,vendor,device} r,
|
||||
@{sys}/devices/@{pci}/{irq,vendor,device} r,
|
||||
@{sys}/devices/system/cpu/cpufreq/policy[0-9]/cpuinfo_max_freq r,
|
||||
@{sys}/devices/virtual/tty/tty[0-9]/active r,
|
||||
@{sys}/fs/cgroup/** r,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue