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

@ -33,6 +33,7 @@ profile sudo @{exec_path} {
ptrace (read),
signal (send) peer=unconfined,
signal (send) set=(cont,hup) peer=su,
dbus send bus=system path=/org/freedesktop/login[0-9]

View file

@ -45,6 +45,7 @@ profile wireplumber @{exec_path} {
@{sys}/devices/**/sound/**/uevent r,
@{sys}/devices/pci[0-9]*/**/modalias r,
@{sys}/devices/pci[0-9]*/**/video4linux/video[0-9]*/uevent r,
@{sys}/devices/virtual/dmi/id/{sys_vendor,product_version,product_name} r,
/dev/snd/ r,
/dev/video[0-9]* rw,

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>

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,