mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 16:03:51 +01:00
37 lines
768 B
Plaintext
37 lines
768 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} {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
|
|
capability sys_admin,
|
|
capability dac_read_search,
|
|
|
|
mount fstype=zfs,
|
|
umount fstype=zfs,
|
|
|
|
@{exec_path} mr,
|
|
|
|
/etc/zfs/zfs-list.cache/{,*} rwk,
|
|
|
|
# Sanoid generates temorary files with random names including underscores, directly under /tmp.
|
|
# https://github.com/jimsalterjrs/sanoid/issues/758
|
|
/tmp/* rw,
|
|
|
|
@{run}/zfs-list.cache@* rw,
|
|
|
|
@{PROC}/@{pids}/mounts r,
|
|
@{PROC}/sys/fs/pipe-max-size r,
|
|
|
|
/dev/zfs rw,
|
|
|
|
include if exists <local/zfs>
|
|
}
|