# ------------------------------------------------------------------
#
#    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-bounce /usr/lib/postfix/{bin/,sbin/}bounce {
  #include <abstractions/base>
  #include <abstractions/nameservice>
  #include <abstractions/postfix-common>

  capability setgid,
  capability setuid,

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

  /etc/postfix/main.cf                           r,

  owner /var/spool/postfix/active/**             rwk,
  owner /var/spool/postfix/bounce/**             rwk,
  owner /var/spool/postfix/defer/**              rwk,
  owner /var/spool/postfix/incoming/**           rwk,
  owner /var/spool/postfix/trace/**              rwk,
  owner /var/spool/postfix/public/cleanup        w,

  /var/spool/postfix/pid/unix.bounce             rwk,
  /var/spool/postfix/pid/unix.defer              rwk,
  /var/spool/postfix/pid/unix.trace              rwk,

  @{PROC}/net/if_inet6                           r,

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