Add apparmor_parser.

This commit is contained in:
Alexandre Pujol 2021-09-15 20:42:26 +01:00
parent d90aecaa40
commit 1eead1e773
Failed to generate hash of commit
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,30 @@
# 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/apparmor_parser
profile apparmor_parser @{exec_path} {
include <abstractions/base>
capability mac_admin,
@{exec_path} mr,
/etc/apparmor/{,**} r,
/etc/apparmor.d/{,**} r,
owner /var/cache/apparmor/{,**} rw,
owner /var/lib/docker/tmp/docker-default[0-9]* r,
owner @{sys}/kernel/security/apparmor/{,**} r,
owner @{sys}/kernel/security/apparmor/.{remove,replace,load,access} rw,
owner @{PROC}/@{pid}/mounts r,
owner @{PROC}/sys/kernel/osrelease r,
include if exists <local/apparmor_parser>
}

View file

@ -1,6 +1,7 @@
acpid attach_disconnected,complain
adb complain
agetty complain
apparmor_parser complain
arch-audit complain
at-spi-bus-launcher attach_disconnected
auditd complain