# 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/3.0>,

include <tunables/global>

@{exec_path} = @{bin}/nullmailer-send
profile nullmailer-send @{exec_path} {
  include <abstractions/base>
  include <abstractions/nameservice-strict>
  include <abstractions/ssl_certs>

  @{exec_path} mr,

  @{lib}/nullmailer/smtp  rix,

  /etc/mailname r,
  /etc/nullmailer/{,*} r,

  /var/spool/nullmailer/{,**} rw,

  include if exists <local/nullmailer-send>
}

# vim:syntax=apparmor
