29 lines
815 B
Text
29 lines
815 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} = @{libexec}/zsys-system-autosnapshot
|
|
profile zsys-system-autosnapshot @{exec_path} flags=(complain) {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
|
|
@{exec_path} mr,
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
|
/{usr/,}bin/cat rix,
|
|
/{usr/,}bin/cp rix,
|
|
/{usr/,}bin/rm rix,
|
|
/{usr/,}{s,}bin/zsysctl rPx,
|
|
/{usr/,}{s,}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>
|
|
}
|