Bug 250192

Summary: SELinux prevents cyrus-imapd from connecting to saslauthd
Product: Red Hat Enterprise Linux 5 Reporter: Nathaniel McCallum <nathaniel>
Component: cyrus-imapdAssignee: Tomas Janousek <tjanouse>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Brian Brock <bbrock>
Severity: low Docs Contact:
Priority: low    
Version: 5.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-15 14:57:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nathaniel McCallum 2007-07-30 22:36:26 UTC
I have cyrus-imapd configured to use saslauthd for authentication (the default
configuration).  For some reason, the imapd process cannot connect to the
saslauthd daemon.  The log says:
kernel: audit(1185169605.092:25): avc:  denied  { connectto } for  pid=3730
comm="imapd" name="mux" scontext=root:system_r:cyrus_t:s0
tcontext=root:system_r:unconfined_t:s0-s0:c0.c1023 tclass=unix_stream_socket

'ls -Z /var/run/saslauthd/mux' shows:
srwxrwxrwx  root root system_u:object_r:saslauthd_var_run_t /var/run/saslauthd/mux

'allow cyrus_t unconfined_t:unix_stream_socket connectto;' permits me to
workaround this issue.

Comment 1 Tomas Janousek 2007-08-15 11:33:24 UTC
Why is saslauthd running as unconfined_t?  Did you run it by hand, ie outside
the init script?

If it runs within the init script this should work.

Comment 2 Tomas Janousek 2007-10-15 13:52:18 UTC
Ping?