mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-11 20:55:19 +01:00
66 lines
1.5 KiB
Text
66 lines
1.5 KiB
Text
# 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/pacman-key
|
|
profile pacman-key @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
|
|
capability dac_read_search,
|
|
capability mknod,
|
|
|
|
@{exec_path} mr,
|
|
|
|
/{usr/,}bin/basename rix,
|
|
/{usr/,}bin/bash rix,
|
|
/{usr/,}bin/chmod rix,
|
|
/{usr/,}bin/{m,g,}awk rix,
|
|
/{usr/,}bin/gettext rix,
|
|
/{usr/,}bin/gpg rCx -> gpg,
|
|
/{usr/,}bin/grep rix,
|
|
/{usr/,}bin/pacman-conf rPx,
|
|
/{usr/,}bin/touch rix,
|
|
/{usr/,}bin/tput rix,
|
|
/{usr/,}bin/vercmp rix,
|
|
/{usr/,}bin/wc rix,
|
|
|
|
/usr/share/makepkg/{,**} r,
|
|
/usr/share/pacman/keyrings/{,*} r,
|
|
/usr/share/terminfo/x/xterm-256color r,
|
|
|
|
/etc/pacman.d/gnupg/gpg.conf r,
|
|
|
|
/dev/tty rw,
|
|
|
|
profile gpg {
|
|
include <abstractions/base>
|
|
include <abstractions/p11-kit>
|
|
include <abstractions/ssl_certs>
|
|
|
|
capability dac_read_search,
|
|
capability mknod,
|
|
|
|
/{usr/,}bin/gpg mr,
|
|
/{usr/,}bin/dirmngr rix,
|
|
/{usr/,}bin/gpg-agent rix,
|
|
|
|
/usr/share/pacman/keyrings/{,*} r,
|
|
|
|
/etc/pacman.d/gnupg/ rw,
|
|
/etc/pacman.d/gnupg/** rwkl,
|
|
|
|
@{HOME}/.gnupg/gpg.conf r,
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
owner @{PROC}/@{pid}/task/@{tid}/comm rw,
|
|
owner @{PROC}/@{pid}/task/@{tid}/stat rw,
|
|
|
|
}
|
|
|
|
include if exists <local/pacman-key>
|
|
}
|