Add the systemd-tty-ask-password-agent profile.

This commit is contained in:
Alexandre Pujol 2021-06-29 20:04:51 +01:00
parent a8a1f3b29a
commit f7e0824826
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -0,0 +1,21 @@
# 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>
@{exec_path} mr,
@{run}/systemd/ask-password-block/{,*} rw,
@{run}/systemd/ask-password/ r,
@{PROC}/@{pids}/stat r,
include if exists <local/systemd-tty-ask-password-agent>
}