From adf48a20523ab3f4f83b1fcac540e9a2e0ce9fe9 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sun, 4 Apr 2021 17:24:44 +0100 Subject: [PATCH] Add seahorse profile. --- apparmor.d/groups/gnome/seahorse | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 apparmor.d/groups/gnome/seahorse diff --git a/apparmor.d/groups/gnome/seahorse b/apparmor.d/groups/gnome/seahorse new file mode 100644 index 000000000..dc22e171d --- /dev/null +++ b/apparmor.d/groups/gnome/seahorse @@ -0,0 +1,36 @@ +# 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/seahorse +profile seahorse @{exec_path} { + include + include + include + include + + @{exec_path} mr, + + /{usr/,}bin/gpgconf rPx, + /{usr/,}bin/gpg rUx, + /{usr/,}bin/gpgsm rPx, + + /usr/share/glib-2.0/schemas/gschemas.compiled r, + /usr/share/icons/{,**} r, + /usr/share/X11/xkb/** r, + + # Seahorse and SSH keys + owner @{HOME}/@{XDG_SSH_DIR}/{,**} r, + + include + owner @{run}/user/[0-9]*/dconf/ rw, + owner @{run}/user/[0-9]*/dconf/user rw, + + @{PROC}/[0-9]*/fd/ r, + + include if exists +}