From f7e0824826d918e781bc6aa3ef79931958d998a5 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Tue, 29 Jun 2021 20:04:51 +0100 Subject: [PATCH] Add the systemd-tty-ask-password-agent profile. --- .../systemd/systemd-tty-ask-password-agent | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 apparmor.d/groups/systemd/systemd-tty-ask-password-agent 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 +}