# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Jeroen Rijken <jeroen.rijken@xs4all.nl>
# SPDX-License-Identifier: GPL-2.0-only

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = /etc/cron.{hourly,daily,weekly,monthly}/ntp
@{att} = ""
profile cron-ntp /etc/cron.{hourly,daily,weekly,monthly}/ntp flags=(complain) {
  include <abstractions/base-strict>

  @{exec_path} r,

  @{sh_path}     rix,
  @{bin}/cat     rix,
  @{bin}/{,e}grep  rix,
  @{bin}/sed     rix,

  include if exists <local/cron-ntp>
}

# vim:syntax=apparmor
