feat(profile): minor update.
This commit is contained in:
parent
14e9fea29a
commit
c7030f16a6
3 changed files with 18 additions and 16 deletions
|
|
@ -10,32 +10,28 @@ include <tunables/global>
|
|||
@{exec_path} = @{bin}/iotop
|
||||
profile iotop @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/python>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/python>
|
||||
|
||||
# Needed?
|
||||
audit deny capability net_admin,
|
||||
|
||||
# To set processes' priorities
|
||||
capability sys_nice,
|
||||
|
||||
@{exec_path} r,
|
||||
@{bin}/python3.@{int} r,
|
||||
network netlink raw,
|
||||
|
||||
@{bin}/file rix,
|
||||
@{exec_path} r,
|
||||
|
||||
@{bin}/ r,
|
||||
@{bin}/file rix,
|
||||
@{bin}/python3.@{int} r,
|
||||
|
||||
/etc/magic r,
|
||||
|
||||
@{PROC}/ r,
|
||||
@{PROC}/vmstat r,
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
@{PROC}/@{pids}/cmdline r,
|
||||
@{PROC}/@{pids}/task/ r,
|
||||
@{PROC}/sys/kernel/pid_max r,
|
||||
|
||||
# For file
|
||||
/etc/magic r,
|
||||
@{PROC}/vmstat r,
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
|
||||
include if exists <local/iotop>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue