Bug 649663
Summary: | SELinux is preventing /usr/libexec/postfix/smtpd "connectto" access on /var/spool/postfix/private/auth. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ajay Ramaswamy <ajayr> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 14 | CC: | dwalsh, fedora.jrg01, mgrepl, trailtotale |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | setroubleshoot_trace_hash:0a2dbef40ea16e28b5d126514820a98602c85cb04e76095921dfab770a1b6411 | ||
Fixed In Version: | selinux-policy-3.9.7-14.fc14 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-12-05 00:37:32 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
Ajay Ramaswamy
2010-11-04 08:41:06 UTC
Policy seems to have optional_policy(` dovecot_stream_connect_auth(postfix_smtpd_t) ') It looks like dovecot is listening on the /var/spool/postfix/private/auth. Rather then /usr/libexec/dovecot/dove Or it is mislabeled. restorecon -R -v /usr/libexec ps -eZ | grep auth This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. Daniel, et all. Dovecot can be configured, and it is fairly common to do so, to put an auth socket in /var/spool/postfix/private/ so that the same authentication can be used for postfix and dovecot. I have this: # Postfix smtp-auth unix_listener /var/spool/postfix/private/auth { mode = 0666 user = postfix group = postfix } in /etc/dovecot/conf.d/10-master.conf . My question is on what process is listening on this socket. ps -eZ | grep dovecot /usr/libexec/dovecot/auth Should be running as dovecot_auth_t rather then dovecot_t Daniel, Hopefully this answers your question. From my F14 rig: # ls -lZ /var/run/dovecot/smtp-auth srw-rw-rw-. root postfix system_u:object_r:dovecot_var_run_t:s0 /var/run/dovecot/smtp-auth # lsof /var/run/dovecot/smtp-auth COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME dovecot 1309 root 31u unix 0xffff88002b506080 0t0 11323 /var/run/dovecot/smtp-auth # ps -Zp 1309 LABEL PID TTY TIME CMD system_u:system_r:dovecot_t:s0 1309 ? 00:00:00 dovecot I've named and located my socket differently, but the results are otherwise the same. It looks like the main dovecot process services this socket, so it doesn't seem dovecot_auth_t can be used here. Ok Miroslav, allow this access. Fixed in selinux-policy-3.9.7-14.fc14 selinux-policy-3.9.7-14.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-14.fc14 selinux-policy-3.9.7-14.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update selinux-policy'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-14.fc14 selinux-policy-3.9.7-14.fc14 works for me. selinux-policy-3.9.7-14.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report. |