Add pinentry profiles.

This commit is contained in:
Alexandre Pujol 2021-07-11 17:22:08 +01:00
parent bba090d727
commit aa3c43c999
Failed to generate hash of commit
3 changed files with 58 additions and 0 deletions

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/pinentry
profile pinentry @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
@{exec_path} mr,
/{usr/,}bin/pinentry-* rPx,
/etc/pinentry/preexec r,
include if exists <local/pinentry>
}

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/pinentry-curses
profile pinentry-curses @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
@{exec_path} mr,
/{usr/,}bin/bash rix,
/usr/share/terminfo/x/xterm-256color r,
include if exists <local/pinentry-curses>
}

View file

@ -0,0 +1,16 @@
# 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/pinentry-gnome3
profile pinentry-gnome3 @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
include if exists <local/pinentry-gnome3>
}