Add initial acpid

This commit is contained in:
Alexandre Pujol 2021-04-08 22:42:48 +01:00
parent bba7a8e09c
commit ca6006152a
Failed to generate hash of commit
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,36 @@
# 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/,}bin/acpid
profile acpid @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/nameservice-strict>
capability mknod,
network netlink raw,
@{exec_path} mr,
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}bin/logger rix,
/etc/acpi/{,**} r,
/etc/acpi/handler.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,
include if exists <local/acpid>
}

View file

@ -1,6 +1,7 @@
aa-notify complain
accounts-daemon
acpi
acpid attach_disconnected,complain
adb complain
adduser
amixer