apparmor.d/apparmor.d/groups/pacman/pacman-hook-code
2023-07-08 12:37:40 +01:00

28 lines
No EOL
615 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,
/{usr/,}bin/{,ba}sh rix,
/{usr/,}bin/env rix,
/{usr/,}bin/grep rix,
/{usr/,}bin/sed rix,
/{usr/,}lib/code/product.json rw,
/{usr/,}lib/code/sed?????? rw,
/dev/tty rw,
include if exists <local/pacman-hook-code>
}