mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 17:08:09 +01:00
Add initial acpid
This commit is contained in:
parent
bba7a8e09c
commit
ca6006152a
2 changed files with 37 additions and 0 deletions
36
apparmor.d/profiles-a-l/acpid
Normal file
36
apparmor.d/profiles-a-l/acpid
Normal 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>
|
||||||
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
aa-notify complain
|
aa-notify complain
|
||||||
accounts-daemon
|
accounts-daemon
|
||||||
acpi
|
acpi
|
||||||
|
acpid attach_disconnected,complain
|
||||||
adb complain
|
adb complain
|
||||||
adduser
|
adduser
|
||||||
amixer
|
amixer
|
||||||
|
|
Loading…
Reference in a new issue