Add capability, dbus and some proc

This commit is contained in:
Jeroen Rijken 2022-07-30 12:24:59 +02:00 committed by Alex
parent a9fd0706d1
commit 03881d5614

View File

@ -11,6 +11,13 @@ profile zsysctl @{exec_path} flags=(complain) {
include <abstractions/base>
include <abstractions/dbus-strict>
capability sys_ptrace,
capability sys_admin,
dbus send bus=system path=/org/freedesktop/PolicyKit1/Authority
interface=org.freedesktop.PolicyKit1.Authority
member=CheckAuthorization,
@{exec_path} rm,
/{usr/,}bin/zsysctl rix,
/{usr/,}bin/zsysd rix,
@ -28,6 +35,8 @@ profile zsysctl @{exec_path} flags=(complain) {
@{run}/zsysd.sock rw,
@{PROC}/@{pids}/mounts r,
@{PROC}/cmdline r,
owner @{PROC}/@{pids}/stats r,
@{PROC}/filesystems r,
@{PROC}/sys/kernel/spl/hostid r,