mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-12-25 06:27:49 +01:00
48 lines
926 B
Text
48 lines
926 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2019-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}/debsums
|
|
profile cron-debsums @{exec_path} {
|
|
include <abstractions/base>
|
|
|
|
@{exec_path} mr,
|
|
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
|
/{usr/,}bin/true rix,
|
|
/{usr/,}bin/logger rix,
|
|
/{usr/,}bin/sed rix,
|
|
/{usr/,}bin/{,e}grep rix,
|
|
|
|
/{usr/,}bin/ionice rix,
|
|
|
|
/{usr/,}bin/debsums rPx,
|
|
/{usr/,}bin/tee rCx -> tee,
|
|
|
|
/etc/ r,
|
|
/etc/default/debsums r,
|
|
/etc/debsums-ignore r,
|
|
|
|
# For shell pwd
|
|
/ r,
|
|
|
|
|
|
profile tee {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
|
|
# Needed to write to /proc/self/fd/3
|
|
capability dac_override,
|
|
|
|
/{usr/,}bin/tee mr,
|
|
|
|
owner @{PROC}/@{pid}/fd/3 rw,
|
|
|
|
}
|
|
|
|
include if exists <local/cron-debsums>
|
|
}
|