# vim:ft=apparmor
# ------------------------------------------------------------------
#
#    Copyright (C) 2002-2005 Novell/SUSE
#    Copyright (C) Per Jessen <per@computer.org>
#
#    This program is free software; you can redistribute it and/or
#    modify it under the terms of version 2 of the GNU General Public
#    License published by the Free Software Foundation.
#
# ------------------------------------------------------------------

abi <abi/4.0>,

include <tunables/global>

/usr/bin/mlmmj-send {
  include <abstractions/base>
  include <abstractions/nameservice>

  @{exec_path} mr,
  /var/spool/mlmmj/*/archive/* w,
  /var/spool/mlmmj/*/control/* r,
  /var/spool/mlmmj/*/index rwk,
  /var/spool/mlmmj/*/queue/* klrw,
  /var/spool/mlmmj/*/subscribers.d/ r,
  /var/spool/mlmmj/*/subscribers.d/* r,

  /var/spool/mlmmj/*/digesters.d/ r,
  /var/spool/mlmmj/*/digesters.d/* r,

  /var/spool/mlmmj/*/moderation/* rwk,

  # Site-specific additions and overrides. See local/README for details.
  include if exists <local/usr.bin.mlmmj-send>
}
