# 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
profile cron-cracklib @{exec_path} {
  include <abstractions/base>
  include <abstractions/consoles>

  @{exec_path} r,

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

  /etc/cracklib/cracklib.conf r,

  include if exists <local/cron-cracklib>
}

# vim:syntax=apparmor
