mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-19 01:18:16 +01:00
af603fbc62
This reverts commit 51a33f3f5e
.
39 lines
843 B
Text
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>
|
|
}
|