Merge pull request #18 from nobodysu/patch-7

Update acpid
This commit is contained in:
Alex 2022-01-22 12:28:06 +01:00 committed by GitHub
commit 45bc5b6645
Failed to generate hash of commit

View file

@ -6,7 +6,7 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/acpid
@{exec_path} = /{usr/,}{s,}bin/acpid
profile acpid @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/nameservice-strict>
@ -17,20 +17,63 @@ profile acpid @{exec_path} flags=(attach_disconnected) {
@{exec_path} mr,
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}bin/{ba,da,}sh rix,
/{usr/,}bin/logger rix,
/etc/acpi/powerbtn-acpi-support.sh rPx -> acpid//powerbtn-acpi-support.sh,
/etc/acpi/{,**} r,
/etc/acpi/handler.sh rix,
owner @{run}/acpid.socket rw,
owner @{run}/acpid.pid rw,
owner @{PROC}/@{pids}/fd/ r,
owner @{PROC}/@{pids}/loginuid r,
/dev/input/{,**} r,
/dev/tty rw,
/dev/null r,
owner @{PROC}/@{pid}/fd/ r,
owner @{PROC}/@{pid}/loginuid r,
@{run}/acpid.socket rw,
include if exists <local/acpid>
}
profile acpid//powerbtn-acpi-support.sh flags=(attach_disconnected) {
include <abstractions/base>
/etc/acpi/powerbtn-acpi-support.sh r,
/{usr/,}bin/sed rix,
/{usr/,}bin/pgrep rix,
/{usr/,}bin/{e,}grep rix,
/{usr/,}bin/pinky rix,
/{usr/,}bin/{ba,da,}sh rix,
/{usr/,}bin/dbus-send rix,
/{usr/,}{s,}bin/killall5 rix,
/{usr/,}{s,}bin/shutdown rix,
/etc/acpi/powerbtn.sh rix,
/{usr/,}bin/systemctl rPx -> child-systemctl,
/{usr/,}bin/ps rPx,
/{usr/,}bin/fgconsole rCx,
profile fgconsole /usr/bin/fgconsole {
include <abstractions/base>
capability sys_tty_config,
/{usr/,}bin/fgconsole r,
/dev/tty rw,
owner /dev/tty[0-9]* rw,
}
/usr/share/acpi-support/** r,
deny / r,
@{PROC} r,
@{PROC}/uptime r,
@{PROC}/@{pids}/cmdline r,
include if exists <local/acpid_powerbtn-acpi-support.sh>
}