apparmor.d/profiles/cron-apt-compat
2021-04-01 16:17:47 +01:00

29 lines
745 B
Plaintext

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2020-2021 Mikhail Morfikov
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /etc/cron.{hourly,daily,weekly,monthly}/apt-compat
profile cron-apt-compat @{exec_path} {
include <abstractions/base>
@{exec_path} r,
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}sbin/on_ac_power rPx,
/{usr/,}bin/apt-config rPx,
/{usr/,}lib/apt/apt.systemd.daily rPx,
/{usr/,}bin/dd rix,
/{usr/,}bin/cksum rix,
/{usr/,}bin/cut rix,
/{usr/,}bin/which rix,
/{usr/,}bin/sleep rix,
include if exists <local/cron-apt-compat>
}