mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-30 06:45:10 +01:00
28 lines
583 B
Text
28 lines
583 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2024 odomingao
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/earlyoom
|
|
profile earlyoom @{exec_path} {
|
|
include <abstractions/base>
|
|
|
|
capability kill,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{PROC}/ r,
|
|
@{PROC}/@{pid}/cmdline r,
|
|
@{PROC}/@{pid}/comm r,
|
|
@{PROC}/@{pid}/oom_adj r,
|
|
@{PROC}/@{pid}/oom_score r,
|
|
@{PROC}/@{pid}/oom_score_adj r,
|
|
@{PROC}/@{pid}/stat r,
|
|
|
|
include if exists <local/earlyoom>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|