diff --git a/apparmor.d/groups/systemd/systemd-tty-ask-password-agent b/apparmor.d/groups/systemd/systemd-tty-ask-password-agent new file mode 100644 index 000000000..7c73c8444 --- /dev/null +++ b/apparmor.d/groups/systemd/systemd-tty-ask-password-agent @@ -0,0 +1,21 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2021 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}bin/systemd-tty-ask-password-agent +profile systemd-tty-ask-password-agent @{exec_path} { + include + + @{exec_path} mr, + + @{run}/systemd/ask-password-block/{,*} rw, + @{run}/systemd/ask-password/ r, + + @{PROC}/@{pids}/stat r, + + include if exists +}