apparmor.d/apparmor.d/groups/cron/cron-apt-xapian-index

30 lines
649 B
Text

# 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-xapian-index
profile cron-apt-xapian-index @{exec_path} {
include <abstractions/base>
@{exec_path} r,
@{bin}/{,ba,da}sh rix,
@{bin}/which{,.debianutils} rix,
@{bin}/{,e}grep rix,
@{bin}/nice rix,
@{bin}/ionice rix,
@{bin}/ r,
@{bin}/update-apt-xapian-index rPx,
@{bin}/on_ac_power rPx,
# For shell pwd
/ r,
include if exists <local/cron-apt-xapian-index>
}