2014-01-26 22:43:42 +01:00
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Copyright (C) 2009-2010 Canonical Ltd.
|
2020-06-11 12:57:53 +02:00
|
|
|
# Copyright (C) 2011-2020 Christian Boltz
|
2014-01-26 22:43:42 +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>
|
|
|
|
include <tunables/dovecot>
|
2014-01-26 22:43:42 +01:00
|
|
|
|
2020-06-11 12:57:53 +02:00
|
|
|
profile dovecot-imap /usr/lib/dovecot/imap {
|
2020-06-09 23:30:24 +02:00
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/nameservice>
|
|
|
|
include <abstractions/dovecot-common>
|
2009-11-11 11:42:30 -08:00
|
|
|
|
|
|
|
capability setuid,
|
|
|
|
|
2017-01-26 21:41:38 +01:00
|
|
|
network unix stream,
|
|
|
|
|
2014-01-26 22:43:42 +01:00
|
|
|
@{DOVECOT_MAILSTORE}/ rw,
|
|
|
|
@{DOVECOT_MAILSTORE}/** rwkl,
|
|
|
|
|
|
|
|
@{HOME} r, # ???
|
2016-10-05 20:46:03 +02:00
|
|
|
|
|
|
|
/etc/dovecot/dovecot.conf r,
|
|
|
|
/etc/dovecot/conf.d/ r,
|
|
|
|
/etc/dovecot/conf.d/** r,
|
|
|
|
|
2017-12-18 15:33:48 +01:00
|
|
|
owner /tmp/dovecot.imap.* rw,
|
2020-09-18 04:03:55 -07:00
|
|
|
@{PROC}/@{pid}/attr/{apparmor/,}current rw,
|
2022-05-15 20:53:35 +02:00
|
|
|
@{PROC}/@{pid}/stat r,
|
2016-10-05 20:46:03 +02:00
|
|
|
/usr/bin/doveconf rix,
|
|
|
|
/usr/lib/dovecot/imap mrix,
|
|
|
|
/usr/share/dovecot/** r,
|
2020-02-13 11:02:49 +02:00
|
|
|
@{run}/dovecot/login/imap rw,
|
|
|
|
@{run}/dovecot/auth-master rw,
|
|
|
|
@{run}/dovecot/mounts r,
|
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.lib.dovecot.imap>
|
2009-11-11 11:42:30 -08:00
|
|
|
}
|