apparmor.d/apparmor.d/groups/systemd/systemd-generator-run
2024-04-02 13:41:08 +01:00

25 lines
No EOL
581 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{lib}/systemd/system-generators/systemd-run-generator
profile systemd-generator-run @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/common/systemd>
ptrace (read) peer=@{p_systemd},
@{exec_path} mr,
/etc/fstab r,
@{sys}/**/uevent r,
@{PROC}/@{pid}/cgroup r,
include if exists <local/systemd-generator-run>
}