apparmor.d/apparmor.d/profiles-m-r/resolvconf
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

39 lines
885 B
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} = @{bin}/resolvconf
profile resolvconf @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
@{exec_path} mr,
@{sh_path} rix,
@{bin}/cat rix,
@{bin}/flock rix,
@{bin}/mkdir rix,
@{bin}/mv rix,
@{bin}/readlink rix,
@{bin}/rm rix,
@{bin}/run-parts rix,
@{bin}/sed rix,
@{lib}/resolvconf/list-records rix,
/usr/lib/resolvconf/{,**} r,
@{etc_rw}/resolv.conf rw,
/etc/resolvconf/{,**} r,
/etc/resolvconf/update.d/libc rix,
owner @{run}/resolvconf/{,**} rw,
owner @{run}/resolvconf/run-lock wk,
/dev/tty rw,
include if exists <local/resolvconf>
}