Bug 742664

Summary: Access from exim to dovecot auth denied
Product: [Fedora] Fedora Reporter: Renich Bon Ciric <renich>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: high Docs Contact:
Priority: unspecified    
Version: 15CC: dwalsh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.9.16-50.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-17 20:25:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Renich Bon Ciric 2011-10-01 05:02:29 UTC
Description of problem:
Exim can't authenticate, while SELinux is active, using dovecot's auth socket

Version-Release number of selected component (if applicable):
exim-4.76-2.fc15.x86_64

How reproducible:
Follow this howto: http://wiki.dovecot.org/HowTo/EximAndDovecotSASL
  
Actual results:
type=AVC msg=audit(1317445107.977:19759): avc:  denied  { search } for  pid=14175 comm="exim" name="dovecot" dev=tmpfs ino=10537 scontext=system_u:system_r:exim_t:s0 tcontext=system_u:object_r:dovecot_var_run_t:s0 tclass=dir
type=SYSCALL msg=audit(1317445107.977:19759): arch=c000003e syscall=42 success=no exit=-13 a0=5 a1=7fffaf3152e0 a2=6e a3=ffffffff items=0 ppid=1068 pid=14175 auid=4294967295 uid=93 gid=93 euid=93 suid=93 fsuid=93 egid=93 sgid=93 fsgid=93 tty=(none) ses=4294967295 comm="exim" exe="/usr/sbin/exim" subj=system_u:system_r:exim_t:s0 key=(null)


Expected results:
successful authentication.

Additional info:
IMHO, exim should be allowed to read /var/run/dovecot/auth-client

Should this be provided by you or by the exim packager?

Comment 1 Miroslav Grepl 2011-10-03 08:58:36 UTC
Fixed in selinux-policy-3.9.16-43.fc15

Comment 2 Fedora Update System 2011-12-14 13:39:42 UTC
selinux-policy-3.9.16-50.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-50.fc15

Comment 3 Fedora Update System 2011-12-14 23:29:41 UTC
Package selinux-policy-3.9.16-50.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.9.16-50.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-17089/selinux-policy-3.9.16-50.fc15
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2012-01-17 20:25:13 UTC
selinux-policy-3.9.16-50.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.