mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 17:08:09 +01:00
Add pstree (#38)
This commit is contained in:
parent
6c30e362ee
commit
9a48515089
1 changed files with 29 additions and 0 deletions
29
apparmor.d/profiles-m-r/pstree
Normal file
29
apparmor.d/profiles-m-r/pstree
Normal 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>
|
||||||
|
}
|
Loading…
Reference in a new issue