Add pstree (#38)

This commit is contained in:
nobodysu 2022-05-23 16:55:58 +00:00 committed by GitHub
parent 6c30e362ee
commit 9a48515089
Failed to generate hash of commit

View file

@ -0,0 +1,29 @@
# apparmor.d - Full set of apparmor profiles
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{,usr/}bin/pstree
profile pstree @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
capability sys_ptrace,
ptrace (read),
@{exec_path} mr,
@{PROC} r,
@{PROC}/uptime r,
@{PROC}/@{pids}/stat r,
@{PROC}/@{pids}/task/ r,
@{PROC}/@{pids}/attr/current r,
owner @{PROC}/@{pids}/cmdline r,
owner @{PROC}/@{pids}/task/@{tid}/stat r,
include if exists <local/pstree>
}