2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 01:57:43 +00:00

Merge Profiles: dovecot add access for dovecot 2.4 doveconf paths

Dovecot 2.4 now creates a "binary" version of its config via doveconf. This needs new access rules, as it otherwise prevents all Dovecot processes from accessing this new configuration.

MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1733
Approved-by: Christian Boltz <apparmor@cboltz.de>
Merged-by: Christian Boltz <apparmor@cboltz.de>
This commit is contained in:
Christian Boltz 2025-07-15 18:15:56 +00:00
commit fc636c7ff3
3 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,8 @@
signal receive peer=dovecot,
owner @{run}/dovecot/config rw,
owner @{run}/dovecot/dovecot.conf.binary r,
owner /tmp/doveconf.* r,
# Include additions to the abstraction
include if exists <abstractions/dovecot-common.d>

View File

@ -28,6 +28,8 @@ profile dovecot-config /usr/lib*/dovecot/config {
/usr/lib*/dovecot/managesieve Px,
/usr/share/dovecot/** r,
/var/lib/dovecot/ssl-parameters.dat r,
owner @{run}/dovecot/dovecot.conf.binary* rw,
owner /tmp/doveconf.* rw,
# Site-specific additions and overrides. See local/README for details.
include if exists <local/usr.lib.dovecot.config>

View File

@ -78,6 +78,7 @@ profile dovecot /usr/{bin,sbin}/dovecot flags=(attach_disconnected) {
@{run}/dovecot/ rw,
@{run}/dovecot/** rw,
link @{run}/dovecot/** -> /var/lib/dovecot/**,
owner /tmp/doveconf.* rw,
# Site-specific additions and overrides. See local/README for details.
include if exists <local/usr.sbin.dovecot>