feat(profiles): general update.

This commit is contained in:
Alexandre Pujol 2022-07-10 14:28:44 +01:00
parent c0e62f30bb
commit 23642eb0be
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
14 changed files with 39 additions and 18 deletions

View file

@ -1,3 +1,7 @@
# 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>
@ -10,17 +14,18 @@ profile zpool @{exec_path} flags=(complain) {
capability sys_admin,
@{exec_path} rm,
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}{local/,}lib/zfs-linux/zpool.d/* rix,
/etc/hostid r,
@{PROC}/sys/kernel/spl/hostid r,
@{run}/blkid/blkid.tab rw,
@{run}/blkid/blkid.tab.old l,
@{run}/blkid/blkid.tab-* rwl,
@{PROC}/@{pids}/mounts r,
@{PROC}/sys/kernel/spl/hostid r,
/dev/pts/[0-9]* rw,
/dev/zfs rw,