Add profiles for whoami, whereis, which, findmnt, users, sanoid and syncoid.
This commit is contained in:
parent
6af5c76fb8
commit
7ee9644325
7 changed files with 198 additions and 0 deletions
32
apparmor.d/profiles-s-z/sanoid
Normal file
32
apparmor.d/profiles-s-z/sanoid
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# 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/sanoid
|
||||
profile sanoid @{exec_path} flags=(complain) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/perl>
|
||||
|
||||
@{exec_path} rm,
|
||||
/{usr/,}bin/{,ba,da}sh rix,
|
||||
/{usr/,}bin/perl rix,
|
||||
/{usr/,}bin/ps rPx,
|
||||
/{usr/,}{local/,}{s,}bin/zfs rPx,
|
||||
|
||||
/etc/sanoid/{*,} r,
|
||||
|
||||
/var/cache/sanoid/snapshots.txt rw,
|
||||
|
||||
/usr/share/sanoid/{**,} r,
|
||||
|
||||
@{run}/sanoid/sanoid_cacheupdate.lock rwk,
|
||||
@{run}/sanoid/sanoid_pruning.lock rwk,
|
||||
|
||||
owner /tmp/** rw,
|
||||
|
||||
include if exists <local/sanoid>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue