# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only

abi <abi/3.0>,

include <tunables/global>

@{exec_path} = /etc/cron.{hourly,daily,weekly,monthly}/0anacron
profile cron-anacron @{exec_path} {
  include <abstractions/base>

  @{exec_path} r,

  @{bin}/anacron           rPx,
  @{sh_path}                   rix,
  @{bin}/cat                   rix,
  @{bin}/date                  rix,

  @{sys}/class/power_supply/ r,
  @{sys}/devices/**/power_supply/{,**} r,

  include if exists <local/cron-anacron>
}

# vim:syntax=apparmor
