mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
Add initial systemd-oomd.
This commit is contained in:
parent
66abfab0b9
commit
2fc59385a6
1 changed files with 27 additions and 0 deletions
27
apparmor.d/groups/systemd/systemd-oomd
Normal file
27
apparmor.d/groups/systemd/systemd-oomd
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/3.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = /{usr/,}lib/systemd/systemd-oomd
|
||||||
|
profile systemd-oomd @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
|
||||||
|
capability dac_override,
|
||||||
|
capability kill,
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/etc/systemd/oomd.conf r,
|
||||||
|
|
||||||
|
@{PROC}/1/cgroup r,
|
||||||
|
@{PROC}/cmdline 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>
|
||||||
|
}
|
Loading…
Reference in a new issue