mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-11 20:55:19 +01:00
46 lines
998 B
Text
46 lines
998 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}{s,}bin/mount.zfs
|
|
profile mount-zfs @{exec_path} flags=(complain) {
|
|
include <abstractions/base>
|
|
include <abstractions/nameservice-strict>
|
|
|
|
capability dac_read_search,
|
|
capability sys_admin, # To mount anything.
|
|
|
|
@{exec_path} mr,
|
|
|
|
/dev/pts/[0-9]* rw,
|
|
|
|
@{MOUNTDIRS}/ r,
|
|
@{MOUNTS}/ r,
|
|
@{MOUNTS}/*/ r,
|
|
|
|
mount fstype=zfs -> @{MOUNTDIRS}/,
|
|
mount fstype=zfs -> @{MOUNTS}/,
|
|
mount fstype=zfs -> @{MOUNTS}/*/,
|
|
mount fstype=zfs -> /,
|
|
mount fstype=zfs -> /**/,
|
|
mount fstype=zfs -> /tmp/zfsmnt.*/,
|
|
mount fstype=zfs -> /tmp/zfsmnt.*/*/,
|
|
|
|
umount @{MOUNTDIRS}/,
|
|
umount @{MOUNTS}/,
|
|
umount @{MOUNTS}/*/,
|
|
umount /,
|
|
umount /*/,
|
|
umount /tmp/zfsmnt.*/,
|
|
umount /tmp/zfsmnt.*/*/,
|
|
|
|
@{PROC}/@{pids}/mounts r,
|
|
|
|
/dev/zfs rw,
|
|
|
|
include if exists <local/mount-zfs>
|
|
}
|