apparmor.d/apparmor.d/profiles-s-z/syncoid
Jeroen Rijken 40b171ee94 Replace shells with new sh_path variable
Signed-off-by: Jeroen Rijken <jeroen.rijken@xs4all.nl>
2024-02-21 13:56:40 +00:00

34 lines
788 B
Plaintext

# 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/syncoid
profile syncoid @{exec_path} flags=(complain) {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/perl>
@{exec_path} mr,
@{sh_path} rix,
@{bin}/grep rix,
@{bin}/mbuffer rix,
@{bin}/perl rix,
@{bin}/ps rPx,
@{bin}/pv rix,
/{usr/,}{local/,}{s,}bin/zfs rPx,
/{usr/,}{local/,}{s,}bin/zpool rPx,
/etc/mbuffer.rc r,
owner /tmp/** rw,
@{PROC}/@{pids}/maps r,
include if exists <local/syncoid>
}