Update lxqt-config-brightness

This commit is contained in:
Besanon 2025-08-12 23:09:55 +02:00 committed by GitHub
parent deeefc5768
commit e2f5ac9bcd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,8 @@ profile lxqt-config-brightness @{exec_path} {
include <abstractions/lxqt>
@{exec_path} mr,
@{bin}/pkexec rpx,
@{bin}/pkexec Cx -> pkexec,
@{sh_path} rix,
@ -22,11 +23,39 @@ profile lxqt-config-brightness @{exec_path} {
owner /tmp/@{int} r,
@{sys}/class/backlight/ r,
@{sys}/devices/@{pci}/**/**/drm/card@{int}/card@{int}-eDP-@{int}/amdgpu_bl@{int}/* rw,
@{sys}/devices/@{pci}/**/drm/card@{int}/card@{int}-eDP-@{int}/intel_backlight/* rw,
@{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,
/dev/tty rw,
profile pkexec {
include <abstractions/base>
include <abstractions/app/pkexec>
include <abstractions/python>
ptrace read peer=aa-notify,
@{sbin}/apparmor_parser Px,
@{lib}/@{python_name}/site-packages/apparmor/update_profile.py ix,
/usr/share/apparmor/** r,
/usr/share/terminfo/** r,
@{etc_ro}/inputrc r,
@{etc_ro}/inputrc.keys r,
/etc/apparmor.d/ r,
/etc/apparmor.d/** rw,
/etc/apparmor/* r,
@{PROC}/@{pid}/mounts r,
include if exists <local/lxqt-config-brightness_pkexec>
}
include if exists <local/lxqt-config-brightness>
}