apparmor.d/apparmor.d/profiles-a-f/acpid
2022-08-19 19:25:22 +01:00

39 lines
843 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}{s,}bin/acpid
profile acpid @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/nameservice-strict>
capability dac_read_search,
capability mknod,
network netlink raw,
@{exec_path} mr,
/{usr/,}bin/{ba,da,}sh rix,
/{usr/,}bin/logger rix,
/etc/acpi/powerbtn-acpi-support.sh rPx -> acpi-powerbtn,
/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,
include if exists <local/acpid>
}