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

abi <abi/4.0>,

include <tunables/global>

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

  @{exec_path} r,

  @{sh_path}         rix,
  @{lib}/sysstat/sa2 rpx,

  /etc/default/sysstat r,

  include if exists <local/cron-sysstat>
}

# vim:syntax=apparmor
