mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
Various ZFS fixes
This commit is contained in:
parent
005dec1a53
commit
575d781c88
@ -20,6 +20,10 @@ profile zfs @{exec_path} {
|
||||
|
||||
/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,
|
||||
|
@ -29,6 +29,7 @@ profile zpool @{exec_path} {
|
||||
@{sys}/bus/pci/slots/ r,
|
||||
@{sys}/bus/pci/slots/[0-9]*/address r,
|
||||
|
||||
@{PROC}/@{pids}/mountinfo r,
|
||||
@{PROC}/@{pids}/mounts r,
|
||||
@{PROC}/sys/kernel/spl/hostid r,
|
||||
|
||||
|
@ -9,14 +9,15 @@ include <tunables/global>
|
||||
@{exec_path} = @{libexec}/zsys-system-autosnapshot
|
||||
profile zsys-system-autosnapshot @{exec_path} flags=(complain) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
|
||||
@{exec_path} rm,
|
||||
/{usr/,}bin/{,ba,da}sh rix,
|
||||
/{usr/,}bin/cat rix,
|
||||
/{usr/,}bin/cp rix,
|
||||
/{usr/,}bin/rm rix,
|
||||
/{usr/,}bin/zsysctl rPx,
|
||||
/{usr/,}bin/zsysd rPx,
|
||||
/{usr/,}{s,}bin/zsysctl rPx,
|
||||
/{usr/,}{s,}bin/zsysd rPx,
|
||||
|
||||
/var/log/unattended-upgrades/unattended-upgrades-dpkg.log rw,
|
||||
|
||||
@ -24,7 +25,5 @@ profile zsys-system-autosnapshot @{exec_path} flags=(complain) {
|
||||
@{run}/zsys-snapshot.unattended-upgrades rw,
|
||||
@{run}/unattended-upgrades.pid r,
|
||||
|
||||
/dev/pts/[0-9]* rw,
|
||||
|
||||
include if exists <local/zsys-system-autosnapshot>
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user