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

  capability dac_read_search,

  /usr/lib/postfix/{bin/,sbin/}trivial-rewrite           rmix,

  /etc/postfix/relocated.lmdb                            rlk,
  /etc/postfix/transport.lmdb                            rlk,
  /etc/postfix/virtual.lmdb                              rlk,
  /etc/{m,fs}tab                                         r,

  owner /var/spool/postfix/pid/unix.rewrite              rw,

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