mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
fix(profile): ensure backlight on all hardware
This commit is contained in:
parent
8da557ba04
commit
5b73923385
7 changed files with 42 additions and 37 deletions
|
@ -92,13 +92,14 @@ profile xorg @{exec_path} flags=(attach_disconnected) {
|
||||||
@{sys}/class/ r,
|
@{sys}/class/ r,
|
||||||
@{sys}/class/{tty,input,drm}/ r,
|
@{sys}/class/{tty,input,drm}/ r,
|
||||||
@{sys}/class/power_supply/ r,
|
@{sys}/class/power_supply/ r,
|
||||||
|
@{sys}/devices/@{pci}/ r,
|
||||||
|
@{sys}/devices/@{pci}/backlight/**/{,max_,actual_}brightness r,
|
||||||
|
@{sys}/devices/@{pci}/backlight/**/{uevent,type,enabled} r,
|
||||||
|
@{sys}/devices/@{pci}/backlight/**/brightness rw,
|
||||||
|
@{sys}/devices/@{pci}/boot_vga r,
|
||||||
@{sys}/devices/**/{uevent,name,id,config} r,
|
@{sys}/devices/**/{uevent,name,id,config} r,
|
||||||
@{sys}/devices/**/hid r,
|
@{sys}/devices/**/hid r,
|
||||||
@{sys}/devices/**/power_supply/**/{type,online} r,
|
@{sys}/devices/**/power_supply/**/{type,online} r,
|
||||||
@{sys}/devices/@{pci}/ r,
|
|
||||||
@{sys}/devices/@{pci}/backlight/*/{,max_}brightness r,
|
|
||||||
@{sys}/devices/@{pci}/backlight/*/brightness rw,
|
|
||||||
@{sys}/devices/@{pci}/boot_vga r,
|
|
||||||
@{sys}/devices/platform/ r,
|
@{sys}/devices/platform/ r,
|
||||||
@{sys}/module/i915/{,**} r,
|
@{sys}/module/i915/{,**} r,
|
||||||
|
|
||||||
|
|
|
@ -69,17 +69,18 @@ profile gsd-power @{exec_path} flags=(attach_disconnected) {
|
||||||
@{sys}/class/ r,
|
@{sys}/class/ r,
|
||||||
@{sys}/class/backlight/ r,
|
@{sys}/class/backlight/ r,
|
||||||
|
|
||||||
@{sys}/devices/@{pci}/class r,
|
@{sys}/devices/@{pci}/*_backlight/{,max_,actual_}brightness rw,
|
||||||
|
@{sys}/devices/@{pci}/*_backlight/{uevent,type,enabled} r,
|
||||||
|
@{sys}/devices/@{pci}/backlight/**/{,max_,actual_}brightness rw,
|
||||||
|
@{sys}/devices/@{pci}/backlight/**/{uevent,type,enabled} r,
|
||||||
@{sys}/devices/@{pci}/backlight/**/brightness rw,
|
@{sys}/devices/@{pci}/backlight/**/brightness rw,
|
||||||
@{sys}/devices/@{pci}/backlight/**/{max_brightness,actual_brightness} r,
|
@{sys}/devices/@{pci}/class r,
|
||||||
@{sys}/devices/@{pci}/backlight/**/{uevent,type} r,
|
@{sys}/devices/@{pci}/drm/card@{int}/**/{,max_,actual_}brightness rw,
|
||||||
@{sys}/devices/@{pci}/drm/card@{int}/**/brightness rw,
|
|
||||||
@{sys}/devices/@{pci}/drm/card@{int}/**/{max_brightness,actual_brightness} r,
|
|
||||||
@{sys}/devices/@{pci}/drm/card@{int}/**/{uevent,type,enabled} r,
|
@{sys}/devices/@{pci}/drm/card@{int}/**/{uevent,type,enabled} r,
|
||||||
|
@{sys}/devices/@{pci}/drm/card@{int}/**/brightness rw,
|
||||||
@{sys}/devices/platform/**/leds/*backlight*/uevent r,
|
@{sys}/devices/**/leds/**/{,max_,actual_}brightness rw,
|
||||||
@{sys}/devices/platform/**/leds/*backlight*/max_brightness r,
|
@{sys}/devices/**/leds/**/{uevent,type,enabled} r,
|
||||||
@{sys}/devices/platform/**/leds/*backlight*/brightness rw,
|
@{sys}/devices/**/leds/**/brightness_hw_changed r,
|
||||||
|
|
||||||
@{PROC}/cmdline r,
|
@{PROC}/cmdline r,
|
||||||
@{PROC}/sys/kernel/osrelease r,
|
@{PROC}/sys/kernel/osrelease r,
|
||||||
|
|
|
@ -22,14 +22,14 @@ profile kauth-backlighthelper @{exec_path} {
|
||||||
|
|
||||||
@{sys}/class/backlight/ r,
|
@{sys}/class/backlight/ r,
|
||||||
@{sys}/class/leds/ r,
|
@{sys}/class/leds/ r,
|
||||||
@{sys}/devices/@{pci}/backlight/**/{max_brightness,actual_brightness} r,
|
@{sys}/devices/@{pci}/*_backlight/{,max_,actual_}brightness rw,
|
||||||
@{sys}/devices/@{pci}/backlight/**/{uevent,type} r,
|
@{sys}/devices/@{pci}/*_backlight/{uevent,type,enabled} r,
|
||||||
|
@{sys}/devices/@{pci}/backlight/**/{,max_,actual_}brightness rw,
|
||||||
|
@{sys}/devices/@{pci}/backlight/**/{uevent,type,enabled} r,
|
||||||
@{sys}/devices/@{pci}/backlight/**/brightness rw,
|
@{sys}/devices/@{pci}/backlight/**/brightness rw,
|
||||||
@{sys}/devices/@{pci}/drm/card@{int}/**/{max_brightness,actual_brightness} r,
|
@{sys}/devices/@{pci}/drm/card@{int}/**/{,max_,actual_}brightness rw,
|
||||||
@{sys}/devices/@{pci}/drm/card@{int}/**/{uevent,type,enabled} r,
|
@{sys}/devices/@{pci}/drm/card@{int}/**/{uevent,type,enabled} r,
|
||||||
@{sys}/devices/@{pci}/drm/card@{int}/**/brightness rw,
|
@{sys}/devices/@{pci}/drm/card@{int}/**/brightness rw,
|
||||||
@{sys}/devices/@{pci}/intel_backlight/{max_,}brightness rw,
|
|
||||||
@{sys}/devices/@{pci}/intel_backlight/type r,
|
|
||||||
|
|
||||||
/dev/tty r,
|
/dev/tty r,
|
||||||
|
|
||||||
|
|
|
@ -27,19 +27,20 @@ profile systemd-backlight @{exec_path} {
|
||||||
@{sys}/class/ r,
|
@{sys}/class/ r,
|
||||||
@{sys}/class/backlight/ r,
|
@{sys}/class/backlight/ r,
|
||||||
|
|
||||||
@{sys}/devices/@{pci}/*:@{int}.@{int}/**/ r,
|
|
||||||
@{sys}/devices/@{pci}/ r,
|
@{sys}/devices/@{pci}/ r,
|
||||||
@{sys}/devices/@{pci}/backlight/**/{max_brightness,actual_brightness} r,
|
@{sys}/devices/@{pci}/*_backlight/{,max_,actual_}brightness rw,
|
||||||
@{sys}/devices/@{pci}/backlight/**/{uevent,type} r,
|
@{sys}/devices/@{pci}/*_backlight/{uevent,type,enabled} r,
|
||||||
|
@{sys}/devices/@{pci}/backlight/**/{,max_,actual_}brightness rw,
|
||||||
|
@{sys}/devices/@{pci}/backlight/**/{uevent,type,enabled} r,
|
||||||
@{sys}/devices/@{pci}/backlight/**/brightness rw,
|
@{sys}/devices/@{pci}/backlight/**/brightness rw,
|
||||||
@{sys}/devices/@{pci}/class r,
|
@{sys}/devices/@{pci}/class r,
|
||||||
@{sys}/devices/@{pci}/drm/card@{int}/**/{max_brightness,actual_brightness} r,
|
@{sys}/devices/@{pci}/drm/card@{int}/**/{,max_,actual_}brightness rw,
|
||||||
@{sys}/devices/@{pci}/drm/card@{int}/**/{uevent,type} r,
|
@{sys}/devices/@{pci}/drm/card@{int}/**/{uevent,type,enabled} r,
|
||||||
@{sys}/devices/@{pci}/drm/card@{int}/**/brightness rw,
|
@{sys}/devices/@{pci}/drm/card@{int}/**/brightness rw,
|
||||||
@{sys}/devices/@{pci}/uevent r,
|
@{sys}/devices/@{pci}/uevent r,
|
||||||
@{sys}/devices/**/leds/**/brightness rw,
|
@{sys}/devices/**/leds/**/{,max_,actual_}brightness rw,
|
||||||
|
@{sys}/devices/**/leds/**/{uevent,type,enabled} r,
|
||||||
@{sys}/devices/**/leds/**/brightness_hw_changed r,
|
@{sys}/devices/**/leds/**/brightness_hw_changed r,
|
||||||
@{sys}/devices/**/leds/**/max_brightness r,
|
|
||||||
|
|
||||||
include if exists <local/systemd-backlight>
|
include if exists <local/systemd-backlight>
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,14 +15,14 @@ profile xfpm-power-backlight-helper @{exec_path} {
|
||||||
|
|
||||||
@{sys}/class/backlight/ r,
|
@{sys}/class/backlight/ r,
|
||||||
@{sys}/class/leds/ r,
|
@{sys}/class/leds/ r,
|
||||||
@{sys}/devices/@{pci}/backlight/**/{max_brightness,actual_brightness} r,
|
@{sys}/devices/@{pci}/backlight/**/{,max_,actual_}brightness rw,
|
||||||
@{sys}/devices/@{pci}/backlight/**/{uevent,type} r,
|
@{sys}/devices/@{pci}/backlight/**/{uevent,type,enabled} r,
|
||||||
@{sys}/devices/@{pci}/backlight/**/brightness rw,
|
@{sys}/devices/@{pci}/backlight/**/brightness rw,
|
||||||
@{sys}/devices/@{pci}/drm/card@{int}/**/{max_brightness,actual_brightness} r,
|
@{sys}/devices/@{pci}/drm/card@{int}/**/{,max_,actual_}brightness rw,
|
||||||
@{sys}/devices/@{pci}/drm/card@{int}/**/{uevent,type,enabled} r,
|
@{sys}/devices/@{pci}/drm/card@{int}/**/{uevent,type,enabled} r,
|
||||||
@{sys}/devices/@{pci}/drm/card@{int}/**/brightness rw,
|
@{sys}/devices/@{pci}/drm/card@{int}/**/brightness rw,
|
||||||
@{sys}/devices/@{pci}/intel_backlight/{max_,}brightness rw,
|
@{sys}/devices/@{pci}/*_backlight/{,max_,actual_}brightness rw,
|
||||||
@{sys}/devices/@{pci}/intel_backlight/type r,
|
@{sys}/devices/@{pci}/*_backlight/{uevent,type,enabled} r,
|
||||||
|
|
||||||
include if exists <local/xfpm-power-backlight-helper>
|
include if exists <local/xfpm-power-backlight-helper>
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,12 +23,14 @@ profile light @{exec_path} {
|
||||||
|
|
||||||
@{sys}/class/backlight/ r,
|
@{sys}/class/backlight/ r,
|
||||||
@{sys}/class/leds/ r,
|
@{sys}/class/leds/ r,
|
||||||
|
@{sys}/devices/@{pci}/*_backlight/{,max_,actual_}brightness rw,
|
||||||
@{sys}/devices/@{pci}/drm/**/intel_backlight/{,max_}brightness r,
|
@{sys}/devices/@{pci}/*_backlight/{uevent,type,enabled} r,
|
||||||
@{sys}/devices/@{pci}/drm/**/intel_backlight/brightness rw,
|
@{sys}/devices/@{pci}/backlight/**/{,max_,actual_}brightness rw,
|
||||||
|
@{sys}/devices/@{pci}/backlight/**/{uevent,type,enabled} r,
|
||||||
@{sys}/devices/@{pci}/backlight/*/{,max_}brightness r,
|
@{sys}/devices/@{pci}/backlight/**/brightness rw,
|
||||||
@{sys}/devices/@{pci}/backlight/*/brightness rw,
|
@{sys}/devices/**/leds/**/{,max_,actual_}brightness rw,
|
||||||
|
@{sys}/devices/**/leds/**/{uevent,type,enabled} r,
|
||||||
|
@{sys}/devices/**/leds/**/brightness_hw_changed r,
|
||||||
|
|
||||||
# file_inherit
|
# file_inherit
|
||||||
owner /dev/tty@{int} rw,
|
owner /dev/tty@{int} rw,
|
||||||
|
|
|
@ -38,7 +38,7 @@ profile thermald @{exec_path} flags=(attach_disconnected) {
|
||||||
@{sys}/devices/system/cpu/intel_pstate/no_turbo rw,
|
@{sys}/devices/system/cpu/intel_pstate/no_turbo rw,
|
||||||
@{sys}/devices/system/cpu/intel_pstate/status r,
|
@{sys}/devices/system/cpu/intel_pstate/status r,
|
||||||
|
|
||||||
@{sys}/devices/@{pci}/drm/**/intel_backlight/max_brightness r,
|
@{sys}/devices/@{pci}/*_backlight/{,max_,actual_}brightness r,
|
||||||
@{sys}/devices/@{pci}/power_limits/power_limit_@{int}_max_uw r,
|
@{sys}/devices/@{pci}/power_limits/power_limit_@{int}_max_uw r,
|
||||||
@{sys}/devices/@{pci}/power_limits/power_limit_@{int}_min_uw r,
|
@{sys}/devices/@{pci}/power_limits/power_limit_@{int}_min_uw r,
|
||||||
@{sys}/devices/@{pci}/power_limits/power_limit_@{int}_tmax_us r,
|
@{sys}/devices/@{pci}/power_limits/power_limit_@{int}_tmax_us r,
|
||||||
|
|
Loading…
Reference in a new issue