# 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}/cracklib-runtime
@{att} = ""
profile cron-cracklib /etc/cron.{hourly,daily,weekly,monthly}/cracklib-runtime flags=(complain) {
  include <abstractions/base-strict>
  include <abstractions/consoles>

  @{exec_path} r,

  @{sh_path}               rix,
  @{bin}/logger            rix,
  @{sbin}/update-cracklib  rpx,

  /etc/cracklib/cracklib.conf r,

  include if exists <local/cron-cracklib>
}

# vim:syntax=apparmor
