From 6c345737270f23c74046550ac316838047a58ae7 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Fri, 22 Oct 2021 15:02:10 +0100 Subject: [PATCH] Add pkttyagent. --- apparmor.d/profiles-m-r/pkttyagent | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 apparmor.d/profiles-m-r/pkttyagent diff --git a/apparmor.d/profiles-m-r/pkttyagent b/apparmor.d/profiles-m-r/pkttyagent new file mode 100644 index 00000000..0954ccdb --- /dev/null +++ b/apparmor.d/profiles-m-r/pkttyagent @@ -0,0 +1,23 @@ +# 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/pkttyagent +profile pkttyagent @{exec_path} { + include + + ptrace (read), + signal (receive), + + @{exec_path} mr, + + owner @{PROC}/@{pids}/stat r, + + /dev/tty rw, + + include if exists +} \ No newline at end of file