apparmor.d/apparmor.d/groups/systemd/systemd-update-utmp
2022-02-16 19:18:14 +00:00

33 lines
No EOL
685 B
Text

# 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-update-utmp
profile systemd-update-utmp @{exec_path} {
include <abstractions/base>
capability audit_write,
capability net_admin,
network netlink raw,
ptrace (read) peer=unconfined,
@{exec_path} mr,
owner /var/log/wtmp rwk,
owner @{run}/utmp rwk,
@{run}/host/container-manager r,
@{PROC}/1/cmdline r,
@{PROC}/1/environ r,
@{PROC}/cmdline r,
@{PROC}/sys/kernel/osrelease r,
include if exists <local/systemd-update-utmp>
}