Bug 616344 - denials when dovecot is invoked by postfix
denials when dovecot is invoked by postfix
Status: CLOSED DUPLICATE of bug 612406
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: selinux-policy (Show other bugs)
All Linux
low Severity medium
: rc
: ---
Assigned To: Daniel Walsh
BaseOS QE Security Team
Depends On:
  Show dependency treegraph
Reported: 2010-07-20 04:27 EDT by Ales Zelinka
Modified: 2012-09-21 08:41 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-07-21 11:16:03 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ales Zelinka 2010-07-20 04:27:30 EDT
Description of problem:
I have dovecot configured as LDA in postfix:
mailbox_command = /usr/libexec/dovecot/deliver

Dovecot then runs in postfix's context, confusing selinux:

type=AVC msg=audit(1279613115.572:43903): avc:  denied  { search } for  pid=31012 comm="deliver" name="dovecot" dev=dm-0 ino=2223944 scontext=unconfined_u:system_r:postfix_local_t:s0 tcontext=system_u:object_r:dovecot_var_run_t:s0 tclass=dir
type=SYSCALL msg=audit(1279613115.572:43903): arch=c000003e syscall=42 success=no exit=-13 a0=6 a1=7fff66a2cf20 a2=6e a3=118 items=0 ppid=31004 pid=31012 auid=0 uid=504 gid=504 euid=504 suid=504 fsuid=504 egid=504 sgid=504 fsgid=504 tty=(none) ses=676 comm="deliver" exe="/usr/libexec/dovecot/dovecot-lda" subj=unconfined_u:system_r:postfix_local_t:s0 key=(null)
type=AVC msg=audit(1279613115.576:43904): avc:  denied  { search } for  pid=31012 comm="doveconf" name="dovecot" dev=dm-0 ino=393984 scontext=unconfined_u:system_r:postfix_local_t:s0 tcontext=system_u:object_r:dovecot_cert_t:s0 tclass=dir
type=SYSCALL msg=audit(1279613115.576:43904): arch=c000003e syscall=2 success=yes exit=128 a0=1815b86 a1=0 a2=1815b86 a3=0 items=0 ppid=31004 pid=31012 auid=0 uid=504 gid=504 euid=504 suid=504 fsuid=504 egid=504 sgid=504 fsgid=504 tty=(none) ses=676 comm="doveconf" exe="/usr/bin/doveconf" subj=unconfined_u:system_r:postfix_local_t:s0 key=(null)

The mail delivery still works though.
Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. configure dovecot as LDA in postfix
2. send mail to local user
3. flush queues to force mail delivery
Comment 1 Daniel Walsh 2010-07-20 09:39:00 EDT
Miroslav could you add


Ales can you try the following commands and see if you get any other AVC messages

# cat > mydovecot.te << _EOF
type postfix_local_t;
# make -f /usr/share/selinux/devel/Makefile
# semodule -i mydovecot.pp
Comment 2 Miroslav Grepl 2010-07-21 02:55:03 EDT
This issue should be fixed in the latest RHEL6 selinux-policy.


The problem is /usr/libexec/dovecot/dovecot-lda has bad label with selinux-policy-targeted-3.7.19-29.el6.

please update your selinux-policy and re-test it. Thanks.
Comment 3 Miroslav Grepl 2010-07-21 11:16:03 EDT
I am closing it as duplicate of #612406 bug.

*** This bug has been marked as a duplicate of bug 612406 ***

Note You need to log in before you can comment on or make changes to this bug.