Add pacman-{conf,key} profiles.

This commit is contained in:
Alexandre Pujol 2021-04-04 17:27:14 +01:00
parent 131ef331f5
commit 5353729d73
Failed to generate hash of commit
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,19 @@
# 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-conf
profile pacman-conf @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
@{exec_path} mr,
/etc/pacman.conf r,
/etc/pacman.d/mirrorlist r,
include if exists <local/pacman-conf>
}

View file

@ -0,0 +1,27 @@
# 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>
@{exec_path} mr,
/{usr/,}bin/pacman-conf rPx,
/{usr/,}bin/gpg rUx,
/{usr/,}bin/gettext rix,
/{usr/,}bin/basename rix,
/{usr/,}bin/tput rix,
/usr/share/makepkg/{,**} r,
/usr/share/terminfo/x/xterm-256color r,
/dev/tty rw,
include if exists <local/pacman-key>
}