mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
Add pinentry profiles.
This commit is contained in:
parent
bba090d727
commit
aa3c43c999
3 changed files with 58 additions and 0 deletions
21
apparmor.d/profiles-m-z/pinentry
Normal file
21
apparmor.d/profiles-m-z/pinentry
Normal 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>
|
||||
}
|
21
apparmor.d/profiles-m-z/pinentry-curses
Normal file
21
apparmor.d/profiles-m-z/pinentry-curses
Normal 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>
|
||||
}
|
16
apparmor.d/profiles-m-z/pinentry-gnome3
Normal file
16
apparmor.d/profiles-m-z/pinentry-gnome3
Normal 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>
|
||||
}
|
Loading…
Reference in a new issue