# ------------------------------------------------------------------
#
#    Copyright (C) 2002-2006 Novell/SUSE
#
#    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.
#
# ------------------------------------------------------------------

#include <tunables/global>

profile postfix-flush /usr/lib/postfix/{bin/,sbin/}flush {
  #include <abstractions/base>
  #include <abstractions/nameservice>
  #include <abstractions/postfix-common>

  capability setgid,
  capability setuid,

  /usr/lib/postfix/{bin/,sbin/}flush                     rmix,

  /etc/mtab                                              r,
  /etc/postfix/main.cf                                   r,
  /etc/postfix/virtual.lmdb                              rlk,

  owner /var/spool/postfix/deferred/                     r,
  owner /var/spool/postfix/deferred/*                    rwl,
  owner /var/spool/postfix/flush/                        r,
  owner /var/spool/postfix/flush/*                       rwl,
  owner /var/spool/postfix/incoming/                     r,
  owner /var/spool/postfix/incoming/*                    rwl,
  owner /var/spool/postfix/public/qmgr                   w,
  owner /var/spool/postfix/pid/unix.flush                rw,

  @{HOME}/.forward                                       r,

  # Site-specific additions and overrides. See local/README for details.
  #include <local/postfix-flush>
}
