Add aa-status.

This commit is contained in:
Alexandre Pujol 2021-07-08 19:42:57 +01:00
parent 1990607838
commit cb6344c64f
Failed to generate hash of commit

View file

@ -0,0 +1,28 @@
# 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/aa-status
profile aa-status @{exec_path} {
include <abstractions/base>
capability dac_read_search,
capability sys_ptrace,
ptrace (read),
@{exec_path} mr,
@{sys}/kernel/security/apparmor/profiles r,
@{sys}/module/apparmor/parameters/enabled r,
@{PROC}/ r,
@{PROC}/@{pids}/attr/apparmor/current r,
owner @{PROC}/@{pid}/mounts r,
include if exists <local/aa-status>
}