Update lxqt-config-brightness

So far that seems to work without complains. sys-statements required both in subprofile and profile
This commit is contained in:
Besanon 2025-08-15 10:26:33 +02:00 committed by GitHub
parent 4c77d7ef35
commit 93f3abbee5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,24 +34,18 @@ profile lxqt-config-brightness @{exec_path} {
profile pkexec { profile pkexec {
include <abstractions/base> include <abstractions/base>
include <abstractions/app/pkexec> include <abstractions/app/pkexec>
include <abstractions/python>
ptrace read peer=aa-notify, @{bin}/@{bin}/lxqt-config-brightness Px,
@{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 r,
@{etc_ro}/inputrc.keys r, @{etc_ro}/inputrc.keys r,
/etc/apparmor.d/ r, @{sys}/class/backlight/ r,
/etc/apparmor.d/** rw, @{sys}/devices/@{pci}/*_backlight/{,max_,actual_}brightness rw,
/etc/apparmor/* r, @{sys}/devices/@{pci}/*_backlight/{uevent,type,enabled} r,
@{sys}/devices/@{pci}/backlight/**/{,max_,actual_}brightness rw,
@{PROC}/@{pid}/mounts r, @{sys}/devices/@{pci}/backlight/**/{uevent,type,enabled} r,
@{sys}/devices/@{pci}/backlight/**/brightness rw,
include if exists <local/lxqt-config-brightness_pkexec> include if exists <local/lxqt-config-brightness_pkexec>
} }