diff --git a/apparmor.d/profiles-m-z/pinentry b/apparmor.d/profiles-m-z/pinentry new file mode 100644 index 00000000..7b817df4 --- /dev/null +++ b/apparmor.d/profiles-m-z/pinentry @@ -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/pinentry +profile pinentry @{exec_path} { + include + include + + @{exec_path} mr, + + /{usr/,}bin/pinentry-* rPx, + + /etc/pinentry/preexec r, + + include if exists +} \ No newline at end of file diff --git a/apparmor.d/profiles-m-z/pinentry-curses b/apparmor.d/profiles-m-z/pinentry-curses new file mode 100644 index 00000000..6cd6a660 --- /dev/null +++ b/apparmor.d/profiles-m-z/pinentry-curses @@ -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/pinentry-curses +profile pinentry-curses @{exec_path} { + include + include + + @{exec_path} mr, + + /{usr/,}bin/bash rix, + + /usr/share/terminfo/x/xterm-256color r, + + include if exists +} \ No newline at end of file diff --git a/apparmor.d/profiles-m-z/pinentry-gnome3 b/apparmor.d/profiles-m-z/pinentry-gnome3 new file mode 100644 index 00000000..73e5fc5f --- /dev/null +++ b/apparmor.d/profiles-m-z/pinentry-gnome3 @@ -0,0 +1,16 @@ +# 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/pinentry-gnome3 +profile pinentry-gnome3 @{exec_path} { + include + + @{exec_path} mr, + + include if exists +} \ No newline at end of file