mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
Update acpid
This commit is contained in:
parent
80bd1028c5
commit
0cb633ecec
1 changed files with 22 additions and 20 deletions
|
@ -6,7 +6,7 @@ abi <abi/3.0>,
|
||||||
|
|
||||||
include <tunables/global>
|
include <tunables/global>
|
||||||
|
|
||||||
@{exec_path} = /{usr/,}{,s}bin/acpid
|
@{exec_path} = /{usr/,}{s,}bin/acpid
|
||||||
profile acpid @{exec_path} flags=(attach_disconnected) {
|
profile acpid @{exec_path} flags=(attach_disconnected) {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/nameservice-strict>
|
include <abstractions/nameservice-strict>
|
||||||
|
@ -20,25 +20,24 @@ profile acpid @{exec_path} flags=(attach_disconnected) {
|
||||||
/{usr/,}bin/{,ba,da}sh rix,
|
/{usr/,}bin/{,ba,da}sh rix,
|
||||||
/{usr/,}bin/logger rix,
|
/{usr/,}bin/logger rix,
|
||||||
|
|
||||||
|
/etc/acpi/powerbtn-acpi-support.sh rPx -> acpid//powerbtn-acpi-support.sh,
|
||||||
|
|
||||||
/etc/acpi/{,**} r,
|
/etc/acpi/{,**} r,
|
||||||
/etc/acpi/handler.sh rix,
|
/etc/acpi/handler.sh rix,
|
||||||
|
|
||||||
/dev/input/{,**} r,
|
|
||||||
/dev/tty rw,
|
|
||||||
|
|
||||||
owner @{PROC}/@{pid}/fd/ r,
|
|
||||||
owner @{PROC}/@{pid}/loginuid r,
|
|
||||||
|
|
||||||
owner @{run}/acpid.socket rw,
|
owner @{run}/acpid.socket rw,
|
||||||
owner @{run}/acpid.pid rw,
|
owner @{run}/acpid.pid rw,
|
||||||
|
|
||||||
/etc/acpi/powerbtn-acpi-support.sh rPx -> acpid//powerbtn-acpi-support.sh,
|
owner @{PROC}/@{pids}/fd/ r,
|
||||||
|
owner @{PROC}/@{pids}/loginuid r,
|
||||||
|
|
||||||
|
/dev/input/{,**} r,
|
||||||
|
/dev/tty rw,
|
||||||
|
|
||||||
include if exists <local/acpid>
|
include if exists <local/acpid>
|
||||||
}
|
}
|
||||||
|
|
||||||
profile acpid//powerbtn-acpi-support.sh flags=(attach_disconnected) {
|
profile acpid//powerbtn-acpi-support.sh flags=(attach_disconnected) {
|
||||||
/etc/acpi/powerbtn-acpi-support.sh r,
|
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/wutmp>
|
include <abstractions/wutmp>
|
||||||
|
|
||||||
|
@ -47,15 +46,7 @@ profile acpid//powerbtn-acpi-support.sh flags=(attach_disconnected) {
|
||||||
|
|
||||||
ptrace (read), # unconfined, tighten later, TODO
|
ptrace (read), # unconfined, tighten later, TODO
|
||||||
|
|
||||||
deny / r,
|
/etc/acpi/powerbtn-acpi-support.sh r,
|
||||||
|
|
||||||
@{PROC} r,
|
|
||||||
@{PROC}/uptime r,
|
|
||||||
@{PROC}/sys/kernel/osrelease r,
|
|
||||||
@{PROC}/@{pid}/stat r,
|
|
||||||
@{PROC}/@{pid}/cmdline r,
|
|
||||||
|
|
||||||
/usr/share/acpi-support/** r,
|
|
||||||
|
|
||||||
/{usr/,}bin/sed rix,
|
/{usr/,}bin/sed rix,
|
||||||
/{usr/,}bin/pgrep rix,
|
/{usr/,}bin/pgrep rix,
|
||||||
|
@ -72,14 +63,25 @@ profile acpid//powerbtn-acpi-support.sh flags=(attach_disconnected) {
|
||||||
|
|
||||||
/{usr/,}bin/fgconsole rCx,
|
/{usr/,}bin/fgconsole rCx,
|
||||||
profile fgconsole /usr/bin/fgconsole {
|
profile fgconsole /usr/bin/fgconsole {
|
||||||
/{usr/,}bin/fgconsole r,
|
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
|
|
||||||
capability sys_tty_config,
|
capability sys_tty_config,
|
||||||
|
|
||||||
|
/{usr/,}bin/fgconsole r,
|
||||||
|
|
||||||
/dev/tty rw,
|
/dev/tty rw,
|
||||||
owner /dev/tty[0-9]* rw,
|
owner /dev/tty[0-9]* rw,
|
||||||
}
|
}
|
||||||
|
|
||||||
include if exists <local/powerbtn-acpi-support.sh>
|
/usr/share/acpi-support/** r,
|
||||||
|
|
||||||
|
deny / r,
|
||||||
|
|
||||||
|
@{PROC} r,
|
||||||
|
@{PROC}/uptime r,
|
||||||
|
@{PROC}/sys/kernel/osrelease r,
|
||||||
|
@{PROC}/@{pids}/stat r,
|
||||||
|
@{PROC}/@{pids}/cmdline r,
|
||||||
|
|
||||||
|
include if exists <local/acpid_powerbtn-acpi-support.sh>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue