apparmor.d/apparmor.d/groups/pacman/pacman-hook-code

28 lines
No EOL
585 B
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/share/code-features/patch.sh
profile pacman-hook-code @{exec_path} {
include <abstractions/base>
capability dac_read_search,
@{exec_path} mr,
@{bin}/{,ba}sh rix,
@{bin}/env rix,
@{bin}/grep rix,
@{bin}/sed rix,
@{lib}/code/product.json rw,
@{lib}/code/sed?????? rw,
/dev/tty rw,
include if exists <local/pacman-hook-code>
}