From e2f5ac9bcd409ee3fea8bfcf3996e486a3f2e6c5 Mon Sep 17 00:00:00 2001 From: Besanon Date: Tue, 12 Aug 2025 23:09:55 +0200 Subject: [PATCH] Update lxqt-config-brightness --- apparmor.d/groups/lxqt/lxqt-config-brightness | 35 +++++++++++++++++-- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/apparmor.d/groups/lxqt/lxqt-config-brightness b/apparmor.d/groups/lxqt/lxqt-config-brightness index 5ec1aafe8..f0627643f 100644 --- a/apparmor.d/groups/lxqt/lxqt-config-brightness +++ b/apparmor.d/groups/lxqt/lxqt-config-brightness @@ -13,7 +13,8 @@ profile lxqt-config-brightness @{exec_path} { include @{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 + 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, + + @{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 + } + include if exists }