diff --git a/apparmor.d/profiles-a-f/acpid b/apparmor.d/profiles-a-f/acpid index dfb18ca5..e935d98c 100644 --- a/apparmor.d/profiles-a-f/acpid +++ b/apparmor.d/profiles-a-f/acpid @@ -6,7 +6,7 @@ abi , include -@{exec_path} = /{usr/,}bin/acpid +@{exec_path} = /{usr/,}{,s}bin/acpid profile acpid @{exec_path} flags=(attach_disconnected) { include include @@ -22,15 +22,34 @@ profile acpid @{exec_path} flags=(attach_disconnected) { /etc/acpi/{,**} r, /etc/acpi/handler.sh rix, + /etc/acpi/powerbtn-acpi-support.sh rix, /dev/input/{,**} r, /dev/tty rw, - /dev/null r, owner @{PROC}/@{pid}/fd/ r, owner @{PROC}/@{pid}/loginuid r, - @{run}/acpid.socket rw, + owner @{run}/acpid.socket rw, + owner @{run}/acpid.pid rw, + + /usr/share/acpi-support/** r, + + # powerbtn-acpi-support.sh + /{usr/,}bin/sed rix, + + /{usr/,}bin/ps rPx, + + /{usr/,}bin/fgconsole rCx, + profile fgconsole /usr/bin/fgconsole { + /{usr/,}bin/fgconsole r, + include + + capability sys_tty_config, + + /dev/tty rw, + owner /dev/tty[0-9]* rw, + } include if exists }