apparmor.d/apparmor.d/profiles-s-z/zfs
2022-07-17 22:04:13 +00:00

27 lines
481 B
Plaintext

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Jeroen Rijken
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}{local/,}{s,}bin/zfs
profile zfs @{exec_path} flags=(complain) {
include <abstractions/base>
capability sys_admin,
@{exec_path} mr,
/etc/zfs/zfs-list.cache/{,*} rwk,
@{PROC}/@{pids}/mounts r,
@{run}/zfs-list.cache@* rw,
/dev/zfs rw,
include if exists <local/zfs>
}