apparmor.d/apparmor.d/groups/systemd/systemd-tty-ask-password-agent
2022-06-03 17:42:22 +00:00

29 lines
708 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/,}bin/systemd-tty-ask-password-agent
profile systemd-tty-ask-password-agent @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
# capability net_admin,
signal (receive) set=(term cont) peer=logrotate,
@{exec_path} mr,
@{run}/systemd/ask-password-block/{,*} rw,
@{run}/systemd/ask-password/ r,
@{PROC}/@{pids}/stat r,
@{PROC}/sys/kernel/osrelease r,
@{PROC}/cmdline r,
@{PROC}/1/environ r,
include if exists <local/systemd-tty-ask-password-agent>
}