2014-01-26 22:48:02 +01:00
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Copyright (C) 2009-2013 Canonical Ltd.
|
|
|
|
# Copyright (C) 2011-2013 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.
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
# vim: ft=apparmor
|
2010-08-05 14:00:02 -05:00
|
|
|
|
2009-11-11 11:42:30 -08:00
|
|
|
#include <tunables/global>
|
2014-01-26 22:48:02 +01:00
|
|
|
|
2018-07-25 14:07:35 -07:00
|
|
|
/usr/{bin,sbin}/dovecot flags=(attach_disconnected) {
|
2009-11-11 11:42:30 -08:00
|
|
|
#include <abstractions/authentication>
|
|
|
|
#include <abstractions/base>
|
2014-12-22 17:49:28 +01:00
|
|
|
#include <abstractions/dovecot-common>
|
2014-02-02 15:13:51 +01:00
|
|
|
#include <abstractions/mysql>
|
2009-11-11 11:42:30 -08:00
|
|
|
#include <abstractions/nameservice>
|
|
|
|
#include <abstractions/ssl_certs>
|
|
|
|
#include <abstractions/ssl_keys>
|
|
|
|
|
|
|
|
capability chown,
|
2014-01-26 22:48:02 +01:00
|
|
|
capability dac_override,
|
2017-11-28 18:47:26 +01:00
|
|
|
capability dac_read_search,
|
2014-01-26 22:48:02 +01:00
|
|
|
capability fsetid,
|
|
|
|
capability kill,
|
2009-11-11 11:42:30 -08:00
|
|
|
capability net_bind_service,
|
|
|
|
capability setuid,
|
|
|
|
capability sys_chroot,
|
2016-11-29 21:35:14 +01:00
|
|
|
capability sys_resource,
|
2009-11-11 11:42:30 -08:00
|
|
|
|
2017-12-14 20:17:50 +02:00
|
|
|
signal send set=(int,quit) peer=/usr/lib/dovecot/*,
|
|
|
|
|
2009-11-11 11:42:30 -08:00
|
|
|
/etc/dovecot/** r,
|
|
|
|
/etc/mtab r,
|
2011-08-27 01:12:10 +02:00
|
|
|
/etc/lsb-release r,
|
|
|
|
/etc/SuSE-release r,
|
2013-01-02 15:34:38 -08:00
|
|
|
@{PROC}/@{pid}/mounts r,
|
2014-01-26 22:48:02 +01:00
|
|
|
/usr/bin/doveconf rix,
|
2017-01-30 20:43:47 +01:00
|
|
|
/usr/lib/dovecot/anvil mrPx,
|
|
|
|
/usr/lib/dovecot/auth mrPx,
|
|
|
|
/usr/lib/dovecot/config mrPx,
|
|
|
|
/usr/lib/dovecot/dict mrPx,
|
2009-11-11 11:42:30 -08:00
|
|
|
/usr/lib/dovecot/dovecot-auth Pxmr,
|
|
|
|
/usr/lib/dovecot/imap Pxmr,
|
|
|
|
/usr/lib/dovecot/imap-login Pxmr,
|
2017-01-30 20:43:47 +01:00
|
|
|
/usr/lib/dovecot/lmtp mrPx,
|
|
|
|
/usr/lib/dovecot/log mrPx,
|
|
|
|
/usr/lib/dovecot/managesieve mrPx,
|
2014-01-26 22:48:02 +01:00
|
|
|
/usr/lib/dovecot/managesieve-login Pxmr,
|
2017-01-30 20:43:47 +01:00
|
|
|
/usr/lib/dovecot/pop3 mrPx,
|
2009-11-11 11:42:30 -08:00
|
|
|
/usr/lib/dovecot/pop3-login Pxmr,
|
2014-01-26 22:48:02 +01:00
|
|
|
/usr/lib/dovecot/ssl-build-param rix,
|
2017-01-30 20:43:47 +01:00
|
|
|
/usr/lib/dovecot/ssl-params mrPx,
|
2018-04-11 21:34:51 +02:00
|
|
|
/usr/lib/dovecot/stats Px,
|
2018-07-25 14:07:35 -07:00
|
|
|
/usr/{bin,sbin}/dovecot mrix,
|
2014-09-03 14:45:56 -05:00
|
|
|
/usr/share/dovecot/protocols.d/ r,
|
|
|
|
/usr/share/dovecot/protocols.d/** r,
|
2009-11-11 11:42:30 -08:00
|
|
|
/var/lib/dovecot/ w,
|
2014-01-26 22:48:02 +01:00
|
|
|
/var/lib/dovecot/* rwkl,
|
2014-02-02 15:13:51 +01:00
|
|
|
/var/spool/postfix/private/auth w,
|
|
|
|
/var/spool/postfix/private/dovecot-lmtp w,
|
2011-07-14 07:57:57 -05:00
|
|
|
/{,var/}run/dovecot/ rw,
|
|
|
|
/{,var/}run/dovecot/** rw,
|
2011-08-27 01:12:10 +02:00
|
|
|
link /{,var/}run/dovecot/** -> /var/lib/dovecot/**,
|
2010-08-05 14:00:02 -05:00
|
|
|
|
|
|
|
# Site-specific additions and overrides. See local/README for details.
|
|
|
|
#include <local/usr.sbin.dovecot>
|
2009-11-11 11:42:30 -08:00
|
|
|
}
|