From 257c87239515a9556f967b0e233621edb34fbd1c Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Fri, 5 Apr 2024 23:32:54 +0100 Subject: [PATCH] feat(profile): add xfce-terminal. --- apparmor.d/groups/xfce/xfce-terminal | 45 ++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 apparmor.d/groups/xfce/xfce-terminal diff --git a/apparmor.d/groups/xfce/xfce-terminal b/apparmor.d/groups/xfce/xfce-terminal new file mode 100644 index 00000000..91382985 --- /dev/null +++ b/apparmor.d/groups/xfce/xfce-terminal @@ -0,0 +1,45 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2024 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{bin}/xfce4-terminal +profile xfce-terminal @{exec_path} { + include + include + include + include + include + + @{exec_path} mr, + + # The shell is not confined on purpose. + @{bin}/@{shells} rUx, + + # Some CLI program can be launched directly from Gnome Shell + @{bin}/htop rPx, + @{bin}/micro rPUx, + @{bin}/nvtop rPx, + + /usr/share/ r, + /usr/share/xfce4/ r, + /usr/share/xfce4/terminal/{,**} r, + + /etc/fstab r, + /etc/xdg/ r, + /etc/xdg/xfce4/ r, + + owner @{user_config_dirs}/xfce4/terminal/{,**} r, + + owner /tmp/user/@{uid}/#@{int} rw, + + @{PROC}/@{pid}/cgroup r, + owner @{PROC}/@{pid}/mountinfo r, + + /dev/ptmx rw, + + include if exists +} \ No newline at end of file