Update profile from #25 (2).

This commit is contained in:
Alexandre Pujol 2022-02-09 19:35:18 +00:00
parent 2f77653cba
commit 810985a0cd
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
38 changed files with 103 additions and 37 deletions

View file

@ -9,6 +9,7 @@ include <tunables/global>
@{exec_path} = /{usr/,}lib/systemd/systemd-oomd
profile systemd-oomd @{exec_path} {
include <abstractions/base>
include <abstractions/systemd-common>
capability dac_override,
capability kill,
@ -17,11 +18,9 @@ profile systemd-oomd @{exec_path} {
/etc/systemd/oomd.conf r,
@{PROC}/1/cgroup r,
@{PROC}/cmdline r,
@{sys}/fs/cgroup/cgroup.controllers r,
@{PROC}/pressure/{cpu,io,memory} r,
@{PROC}/sys/kernel/osrelease r,
@{PROC}/sys/kernel/random/boot_id r,
include if exists <local/systemd-oomd>
}