mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-30 06:45:10 +01:00
Add apparmor_parser.
This commit is contained in:
parent
d90aecaa40
commit
1eead1e773
2 changed files with 31 additions and 0 deletions
30
apparmor.d/profiles-a-f/apparmor_parser
Normal file
30
apparmor.d/profiles-a-f/apparmor_parser
Normal 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>
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue