# ------------------------------------------------------------------
#
#    Copyright (C) 2002-2005 Novell/SUSE
#    Copyright (C) 2021 Christian Boltz
#
#    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/3.0>,

include <tunables/global>

/usr/sbin/postalias {
  include <abstractions/base>
  include <abstractions/kerberosclient>
  include <abstractions/nameservice>
  include <abstractions/consoles>
  include <abstractions/postfix-common>
  /etc/aliases                         r,
  /etc/aliases.{lm,}db                 rwlk,
  /etc/postfix                         r,
  /etc/postfix/main.cf                 r,
  /etc/postfix/aliases                 r,
  /etc/postfix/aliases.{lm,}db         rwl,
  /etc/postfix/__db.aliases.db         lrw,
  /etc/__db.aliases.db                 rwl,
  /usr/sbin/postalias                  rmix,
  @{PROC}/net/if_inet6                 r,
  # On SuSE, mailman is configured to use its own alias db
  /var/lib/mailman/data/aliases        r,
  /var/lib/mailman/data/__db.aliases.db rwl,
  /var/lib/mailman/data/aliases.{lm,}db rwl,
  /var/spool/postfix                   r,
  /var/spool/postfix/pid               r,
}
