apparmor.d/apparmor.d/profiles-s-z/zsys-system-autosnapshot

30 lines
782 B
Text

# 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} = @{lib}/zsys-system-autosnapshot
profile zsys-system-autosnapshot @{exec_path} flags=(complain) {
include <abstractions/base>
include <abstractions/consoles>
@{exec_path} mr,
@{bin}/{,ba,da}sh rix,
@{bin}/cat rix,
@{bin}/cp rix,
@{bin}/rm rix,
@{bin}/zsysctl rPx,
@{bin}/zsysd rPx,
/var/log/unattended-upgrades/unattended-upgrades-dpkg.log rw,
@{run}/zsys-bootmenu.unattended-upgrades rw,
@{run}/zsys-snapshot.unattended-upgrades rw,
@{run}/unattended-upgrades.pid r,
include if exists <local/zsys-system-autosnapshot>
}