feat(profile): use the @{pci} varibale when possible.

This commit is contained in:
Alexandre Pujol 2023-12-08 17:46:05 +00:00
parent 013f1c5a83
commit bb947318a5
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
83 changed files with 168 additions and 170 deletions

View file

@ -42,7 +42,7 @@ profile kaccess @{exec_path} {
owner @{run}/user/@{uid}/xauth_@{rand6} r,
@{sys}/devices/pci[0-9]*/**/{device,subsystem_device,subsystem_vendor,uevent,vendor} r,
@{sys}/devices/@{pci}/{device,subsystem_device,subsystem_vendor,uevent,vendor} r,
/dev/tty r,

View file

@ -57,7 +57,7 @@ profile kde-powerdevil @{exec_path} flags=(attach_disconnected mediate_deleted)
@{sys}/class/usbmisc/ r,
@{sys}/devices/@{pci}/drm/card@{int}/*/status r,
@{sys}/devices/i2c-[0-9]*/name r,
@{sys}/devices/pci[0-9]*/**/i2c-[0-9]*/name r,
@{sys}/devices/@{pci}/i2c-[0-9]*/name r,
@{sys}/devices/platform/*/i2c-[0-9]*/name r,
/dev/tty rw,

View file

@ -70,7 +70,7 @@ profile ksmserver @{exec_path} flags=(attach_disconnected,mediate_deleted) {
owner @{run}/user/@{uid}/KSMserver__[0-9] rw,
owner @{run}/user/@{uid}/xauth_@{rand6} rl,
@{sys}/devices/pci[0-9]*/**/{device,subsystem_device,subsystem_vendor,uevent,vendor} r,
@{sys}/devices/@{pci}/{device,subsystem_device,subsystem_vendor,uevent,vendor} r,
@{PROC}/sys/kernel/core_pattern r,

View file

@ -171,7 +171,7 @@ profile plasmashell @{exec_path} flags=(mediate_deleted) {
@{sys}/class/{,**} r,
@{sys}/devices/platform/** r,
@{sys}/devices/pci[0-9]*/**/name r,
@{sys}/devices/@{pci}/name r,
@{sys}/devices/virtual/thermal/thermal_zone@{int}/hwmon@{int}/ r,
@{sys}/devices/system/cpu/cpufreq/policy@{int}/scaling_cur_freq r,
@{sys}/devices/system/node/ r,