Update profiles.
This commit is contained in:
parent
5eeccc84f8
commit
2cc4d69e9e
8 changed files with 53 additions and 12 deletions
|
|
@ -10,6 +10,10 @@ include <tunables/global>
|
|||
profile systemd-binfmt @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
capability net_admin,
|
||||
|
||||
ptrace (read) peer=unconfined,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
# Config file locations
|
||||
|
|
@ -18,6 +22,10 @@ profile systemd-binfmt @{exec_path} {
|
|||
/usr/lib/binfmt.d/*.conf r,
|
||||
|
||||
owner @{PROC}/@{pid}/stat r,
|
||||
@{PROC}/1/environ r,
|
||||
@{PROC}/cmdline r,
|
||||
@{PROC}/sys/fs/binfmt_misc/status w,
|
||||
@{PROC}/sys/kernel/osrelease r,
|
||||
|
||||
include if exists <local/systemd-binfmt>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,12 +11,8 @@ profile systemd-modules-load @{exec_path} {
|
|||
include <abstractions/base>
|
||||
include <abstractions/systemd-common>
|
||||
|
||||
# To load kernel modules
|
||||
capability sys_module,
|
||||
|
||||
# Needed?
|
||||
audit deny capability net_admin,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{sys}/module/*/initstate r,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue