Add paccache profile.

This commit is contained in:
Alexandre Pujol 2021-05-26 20:49:04 +01:00
parent 58978c12b7
commit 9b7ab9cbc3
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -0,0 +1,35 @@
# 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/paccache
profile paccache @{exec_path} {
include <abstractions/base>
capability dac_read_search,
capability mknod,
@{exec_path} mr,
/{usr/,}bin/cat rix,
/{usr/,}bin/gettext rix,
/{usr/,}bin/pacman-conf rPx,
/{usr/,}bin/pacman rPUx,
/{usr/,}bin/tput rix,
/{usr/,}bin/pacsort rix,
/{usr/,}bin/gawk rix,
/{usr/,}bin/bash rix,
/usr/share/makepkg/util/*.sh r,
/usr/share/terminfo/x/xterm-256color r,
/var/cache/pacman/pkg/{,*} rw,
/dev/tty rw,
include if exists <local/paccache>
}