42 lines
881 B
Text
42 lines
881 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/4.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{sbin}/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,
|
|
|
|
@{sh_path} rix,
|
|
@{bin}/logger rix,
|
|
|
|
/etc/acpi/powerbtn-acpi-support.sh rPx -> acpi-powerbtn,
|
|
|
|
/etc/acpi/{,**} r,
|
|
/etc/acpi/handler.sh rix,
|
|
|
|
@{run}/acpid.socket w,
|
|
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>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|