2014-01-26 22:46:51 +01:00
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
2020-06-11 12:57:53 +02:00
|
|
|
# Copyright (C) 2013-2020 Christian Boltz
|
2014-07-07 23:35:18 +02:00
|
|
|
# Copyright (C) 2014 Christian Wittmer
|
2014-01-26 22:46:51 +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
|
|
|
|
|
2023-06-30 23:36:12 -07:00
|
|
|
abi <abi/4.0>,
|
2020-05-05 00:08:39 -07:00
|
|
|
|
2020-06-09 23:30:24 +02:00
|
|
|
include <tunables/global>
|
2014-01-26 22:46:51 +01:00
|
|
|
|
2023-08-03 01:00:48 -04:00
|
|
|
profile dovecot-auth /usr/lib*/dovecot/auth {
|
2020-06-09 23:30:24 +02:00
|
|
|
include <abstractions/authentication>
|
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/mysql>
|
|
|
|
include <abstractions/nameservice>
|
|
|
|
include <abstractions/wutmp>
|
|
|
|
include <abstractions/dovecot-common>
|
2014-01-26 22:46:51 +01:00
|
|
|
|
|
|
|
capability audit_write,
|
2017-11-26 16:38:06 +01:00
|
|
|
capability dac_override,
|
|
|
|
capability dac_read_search,
|
2014-01-26 22:46:51 +01:00
|
|
|
capability setuid,
|
2019-02-13 22:27:08 -05:00
|
|
|
capability sys_chroot,
|
2014-01-26 22:46:51 +01:00
|
|
|
|
2014-02-02 15:16:25 +01:00
|
|
|
/etc/my.cnf r,
|
|
|
|
/etc/my.cnf.d/ r,
|
|
|
|
/etc/my.cnf.d/*.cnf r,
|
|
|
|
|
2014-08-11 23:16:22 +02:00
|
|
|
/etc/dovecot/* r,
|
2023-08-03 01:00:48 -04:00
|
|
|
/usr/lib*/dovecot/auth mr,
|
2019-02-13 22:27:08 -05:00
|
|
|
/var/lib/dovecot/auth-chroot/* r,
|
2014-01-26 22:46:51 +01:00
|
|
|
|
|
|
|
# kerberos replay cache
|
|
|
|
/var/tmp/imap_* rw,
|
|
|
|
/var/tmp/pop_* rw,
|
|
|
|
/var/tmp/sieve_* rw,
|
|
|
|
/var/tmp/smtp_* rw,
|
|
|
|
|
2020-02-13 11:02:49 +02:00
|
|
|
@{run}/dovecot/auth-master rw,
|
|
|
|
@{run}/dovecot/auth-userdb rw,
|
|
|
|
@{run}/dovecot/auth-worker rw,
|
|
|
|
@{run}/dovecot/login/login rw,
|
|
|
|
@{run}/dovecot/auth-token-secret.dat{,.tmp} rw,
|
|
|
|
@{run}/dovecot/old-stats-user w,
|
|
|
|
@{run}/dovecot/stats-user rw,
|
|
|
|
@{run}/dovecot/anvil-auth-penalty rw,
|
2016-12-27 17:46:07 +01:00
|
|
|
|
2019-02-13 22:49:02 -05:00
|
|
|
/var/spool/postfix/private/auth rw,
|
2014-09-26 00:37:14 +02:00
|
|
|
|
2014-01-26 22:46:51 +01: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.auth>
|
2014-01-26 22:46:51 +01:00
|
|
|
}
|