apparmor.d/apparmor.d/groups/pacman/aurpublish
Jeroen Rijken 40b171ee94 Replace shells with new sh_path variable
Signed-off-by: Jeroen Rijken <jeroen.rijken@xs4all.nl>
2024-02-21 13:56:40 +00:00

66 lines
No EOL
1.5 KiB
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /usr/share/aurpublish/*.hook
profile aurpublish @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
include <abstractions/ssl_certs>
include <abstractions/openssl>
network inet dgram,
network inet6 dgram,
network inet stream,
network inet6 stream,
network netlink raw,
signal (receive) peer=git,
@{exec_path} mr,
@{sh_path} rix,
@{bin}/cat rix,
@{bin}/chmod rix,
@{bin}/curl rix,
@{bin}/date rix,
@{bin}/gettext rix,
@{bin}/git rPx,
@{bin}/gpg{,2} rPx,
@{bin}/grep rix,
@{bin}/makepkg rix,
@{bin}/mkdir rix,
@{bin}/mktemp rix,
@{bin}/mv rix,
@{bin}/nproc rix,
@{bin}/rm rix,
@{bin}/sha*sum rix,
@{bin}/tput rix,
@{bin}/wc rix,
/usr/share/makepkg/{,**} r,
/usr/share/terminfo/** r,
/etc/makepkg.conf r,
owner @{user_build_dirs}/**/ w,
owner @{user_projects_dirs}/**/ r,
owner @{user_projects_dirs}/**/.git/COMMIT_EDITMSG rw,
owner @{user_projects_dirs}/**/.SRCINFO rw,
owner @{user_projects_dirs}/**/PKGBUILD r,
owner @{user_cache_dirs}/makepkg/src/* rw,
owner @{user_config_dirs}/pacman/makepkg.conf r,
owner /tmp/tmp.* rw,
owner @{PROC}/@{pid}/maps r,
/dev/tty rw,
include if exists <local/aurpublish>
}