From 93f3abbee5533e03c322151b342f6957d60c611e Mon Sep 17 00:00:00 2001 From: Besanon Date: Fri, 15 Aug 2025 10:26:33 +0200 Subject: [PATCH] Update lxqt-config-brightness So far that seems to work without complains. sys-statements required both in subprofile and profile --- apparmor.d/groups/lxqt/lxqt-config-brightness | 20 +++++++------------ 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/apparmor.d/groups/lxqt/lxqt-config-brightness b/apparmor.d/groups/lxqt/lxqt-config-brightness index 9d8db96c3..ef5ef8a03 100644 --- a/apparmor.d/groups/lxqt/lxqt-config-brightness +++ b/apparmor.d/groups/lxqt/lxqt-config-brightness @@ -34,24 +34,18 @@ profile lxqt-config-brightness @{exec_path} { profile pkexec { include include - include - 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, + @{bin}/@{bin}/lxqt-config-brightness Px, @{etc_ro}/inputrc r, @{etc_ro}/inputrc.keys r, - /etc/apparmor.d/ r, - /etc/apparmor.d/** rw, - /etc/apparmor/* r, - - @{PROC}/@{pid}/mounts r, + @{sys}/class/backlight/ 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, include if exists }