mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-09 02:41:03 +01:00

Some of the /usr/lib/dovecot/* rules already have mrPx permissions, while others don't. With a more recent kernel, I noticed that at least auth, config, dict, lmtp, pop3 and ssl-params need mrPx instead of just Px (confirmed by the audit.log and actual breakage caused by the missing mr permissions). The mr additions for anvil, log and managesieve are just a wild guess, but I would be very surprised if they don't need mr. Acked-by: Seth Arnold <seth.arnold@canonical.com> for trunk, 2.10 and 2.9.
67 lines
2 KiB
Text
67 lines
2 KiB
Text
# ------------------------------------------------------------------
|
|
#
|
|
# 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
|
|
|
|
#include <tunables/global>
|
|
|
|
/usr/sbin/dovecot {
|
|
#include <abstractions/authentication>
|
|
#include <abstractions/base>
|
|
#include <abstractions/dovecot-common>
|
|
#include <abstractions/mysql>
|
|
#include <abstractions/nameservice>
|
|
#include <abstractions/ssl_certs>
|
|
#include <abstractions/ssl_keys>
|
|
|
|
capability chown,
|
|
capability dac_override,
|
|
capability fsetid,
|
|
capability kill,
|
|
capability net_bind_service,
|
|
capability setuid,
|
|
capability sys_chroot,
|
|
capability sys_resource,
|
|
|
|
/etc/dovecot/** r,
|
|
/etc/mtab r,
|
|
/etc/lsb-release r,
|
|
/etc/SuSE-release r,
|
|
@{PROC}/@{pid}/mounts r,
|
|
/usr/bin/doveconf rix,
|
|
/usr/lib/dovecot/anvil mrPx,
|
|
/usr/lib/dovecot/auth mrPx,
|
|
/usr/lib/dovecot/config mrPx,
|
|
/usr/lib/dovecot/dict mrPx,
|
|
/usr/lib/dovecot/dovecot-auth Pxmr,
|
|
/usr/lib/dovecot/imap Pxmr,
|
|
/usr/lib/dovecot/imap-login Pxmr,
|
|
/usr/lib/dovecot/lmtp mrPx,
|
|
/usr/lib/dovecot/log mrPx,
|
|
/usr/lib/dovecot/managesieve mrPx,
|
|
/usr/lib/dovecot/managesieve-login Pxmr,
|
|
/usr/lib/dovecot/pop3 mrPx,
|
|
/usr/lib/dovecot/pop3-login Pxmr,
|
|
/usr/lib/dovecot/ssl-build-param rix,
|
|
/usr/lib/dovecot/ssl-params mrPx,
|
|
/usr/sbin/dovecot mrix,
|
|
/usr/share/dovecot/protocols.d/ r,
|
|
/usr/share/dovecot/protocols.d/** r,
|
|
/var/lib/dovecot/ w,
|
|
/var/lib/dovecot/* rwkl,
|
|
/var/spool/postfix/private/auth w,
|
|
/var/spool/postfix/private/dovecot-lmtp w,
|
|
/{,var/}run/dovecot/ rw,
|
|
/{,var/}run/dovecot/** rw,
|
|
link /{,var/}run/dovecot/** -> /var/lib/dovecot/**,
|
|
|
|
# Site-specific additions and overrides. See local/README for details.
|
|
#include <local/usr.sbin.dovecot>
|
|
}
|