2014-01-26 22:48:02 +01:00
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Copyright (C) 2009-2013 Canonical Ltd.
|
2020-06-11 12:57:53 +02:00
|
|
|
# Copyright (C) 2011-2020 Christian Boltz
|
2014-01-26 22:48:02 +01:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
2020-05-05 00:08:39 -07:00
|
|
|
abi <abi/3.0>,
|
|
|
|
|
2020-06-09 23:30:24 +02:00
|
|
|
include <tunables/global>
|
2014-01-26 22:48:02 +01:00
|
|
|
|
2018-10-15 20:57:33 +02:00
|
|
|
profile dovecot /usr/{bin,sbin}/dovecot flags=(attach_disconnected) {
|
2020-06-09 23:30:24 +02:00
|
|
|
include <abstractions/authentication>
|
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/dovecot-common>
|
|
|
|
include <abstractions/mysql>
|
|
|
|
include <abstractions/nameservice>
|
|
|
|
include <abstractions/ssl_certs>
|
|
|
|
include <abstractions/ssl_keys>
|
2009-11-11 11:42:30 -08:00
|
|
|
|
|
|
|
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
|
|
|
|
2019-03-22 18:33:14 -04:00
|
|
|
signal send set=(int,quit,term) peer=/usr/lib/dovecot/*,
|
2020-06-11 12:57:53 +02:00
|
|
|
signal send set=(int,quit,term) peer=dovecot-*,
|
2017-12-14 20:17:50 +02:00
|
|
|
|
2019-02-10 21:36:10 -05:00
|
|
|
unix (receive, send) type=stream peer=(label=/usr/lib/dovecot/anvil),
|
2020-06-11 12:57:53 +02:00
|
|
|
unix (receive, send) type=stream peer=(label=dovecot-anvil),
|
2019-02-10 21:36:10 -05:00
|
|
|
|
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,
|
2018-12-06 18:12:25 +01:00
|
|
|
@{PROC}/sys/fs/suid_dumpable 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,
|
2020-02-13 11:02:49 +02:00
|
|
|
@{run}/dovecot/ rw,
|
|
|
|
@{run}/dovecot/** rw,
|
|
|
|
link @{run}/dovecot/** -> /var/lib/dovecot/**,
|
2010-08-05 14:00:02 -05:00
|
|
|
|
|
|
|
# Site-specific additions and overrides. See local/README for details.
|
2020-04-28 22:25:27 +02:00
|
|
|
include if exists <local/usr.sbin.dovecot>
|
2009-11-11 11:42:30 -08:00
|
|
|
}
|