Bug 830909
Summary: | selinux is blocking mail delivery | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Nicolas Mailhot <nicolas.mailhot> | ||||||
Component: | selinux-policy-targeted | Assignee: | Miroslav Grepl <mgrepl> | ||||||
Status: | CLOSED EOL | QA Contact: | Ben Levenson <benl> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 19 | CC: | dwalsh, mhlavink | ||||||
Target Milestone: | --- | Keywords: | Reopened | ||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2015-02-18 11:20:26 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Nicolas Mailhot
2012-06-11 15:52:08 UTC
THe only postfix app that we allow to transition to dovecot_deliver is postfix_pipe, I take it postfix_local should also? Fixed in selinux-policy-3.11.0-4.fc18 (In reply to comment #1) > THe only postfix app that we allow to transition to dovecot_deliver is > postfix_pipe, I take it postfix_local should also? dovecot-lda means dovecot local delivery agent so if selinux labels are meaningful it's normal for postfix_local to be able to talk with dovecot-lda Created attachment 592198 [details]
New avcs
Does not work
dovecot-2.1.7-2.fc18.x86_64
dovecot-pigeonhole-2.1.7-2.fc18.x86_64
postfix-2.9.3-1.fc18.x86_64
postfix-perl-scripts-2.9.3-1.fc18.x86_64
selinux-policy-3.11.0-4.fc18.noarch
selinux-policy-devel-3.11.0-4.fc18.noarch
selinux-policy-doc-3.11.0-4.fc18.noarch
selinux-policy-targeted-3.11.0-4.fc18.noarch
systemd-185-6.gite7aee75.fc18.x86_64
systemd-analyze-185-6.gite7aee75.fc18.x86_64
systemd-libs-185-6.gite7aee75.fc18.x86_64
systemd-sysv-185-6.gite7aee75.fc18.x86_64
systemd-ui-1-2.fc18.x86_64
Comment on attachment 592198 [details]
New avcs
sesearch -T -t postfix_local_t -t dovecot_deliver_exec_t
Found 7 semantic te rules:
...
type_transition postfix_local_t dovecot_deliver_exec_t : process dovecot_deliver_t;
It looks like the transition is there on my system
rpm -q selinux-policy
selinux-policy-3.11.0-4.fc18.noarch
razor-agent.log should not be labeled etc_runtime_t, it should be labeled as a log file. Probably need to run restorecon on it.
You have a file named clamd that is labeled as root_t, this is definitely wrong
(In reply to comment #5) > Comment on attachment 592198 [details] > New avcs > > sesearch -T -t postfix_local_t -t dovecot_deliver_exec_t > Found 7 semantic te rules: > ... > > type_transition postfix_local_t dovecot_deliver_exec_t : process > dovecot_deliver_t; > > > It looks like the transition is there on my system > rpm -q selinux-policy > selinux-policy-3.11.0-4.fc18.noarch Same here. Nevertheless it is not sufficient and mail delivery does not work despite two fixfile restore + reboot > razor-agent.log should not be labeled etc_runtime_t, it should be labeled as > a log file. Probably need to run restorecon on it. IIRC razor is stupid enough to try to write its log in / > You have a file named clamd that is labeled as root_t, this is definitely > wrong Again, this was after a fixfiles restore and reboot Created attachment 592279 [details]
anothet avc run
after fixfiles restore and reboot
Jun 16 09:00:06 arekh amavis[1093]: (01093-01) Passed CLEAN, [127.0.0.1] [209.132.183.26] <bugzilla> -> <nim>, Message-ID: <bug-830909-121966-3LcgV4fN5S.com>, mail_id: VdHlmkgW6utg, Hits: -6.108, size: 3813, queued_as: 57A78346D, 3905 ms Jun 16 09:00:06 arekh postfix/smtpd[2835]: proxy-accept: END-OF-MESSAGE: 250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 57A78346D; from=<bugzilla> to=<nim> proto=ESMTP helo=<arekh.okg> Jun 16 09:00:06 arekh postfix/smtpd[2835]: disconnect from localhost.localdomain[127.0.0.1] Jun 16 09:00:06 arekh postfix/local[2863]: 57A78346D: to=<nim>, relay=local, delay=0.5, delays=0.25/0.05/0/0.2, dsn=4.3.0, status=deferred (temporary failure. Command output: lda: Error: user nim: Error reading configuration: stat(/etc/dovecot/dovecot.conf) failed: Permission denied (euid=500(nim) egid=500(nim) missing +w perm: /etc/dovecot/dovecot.conf stat(/etc/dovecot/dovecot.conf) failed: Permission denied, dir owned by 0:0 mode=0755) lda: Fatal: Internal error occurred. Refer to server log for more information. ) No need to fixfiles/reboot. Which program deliver is postfix executing? ls -lZ deliver (In reply to comment #9) > No need to fixfiles/reboot. > > Which program deliver is postfix executing? > > ls -lZ deliver ls -lZ /usr/libexec/dovecot/deliver lrwxrwxrwx. root root system_u:object_r:bin_t:s0 /usr/libexec/dovecot/deliver -> dovecot-lda ls -lZ /usr/libexec/dovecot/dovecot-lda -rwxr-xr-x. root root system_u:object_r:bin_t:s0 /usr/libexec/dovecot/dovecot-lda That is the problem. Fixed in selinux-policy-3.11.0-6.fc18 chcon -t dovecot_deliver_exec_t /usr/libexec/dovecot/dovecot-lda (In reply to comment #11) > That is the problem. Fixed in selinux-policy-3.11.0-6.fc18 That works thanks a lot! This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle. Changing version to '19'. (As we did not run this process for some time, it could affect also pre-Fedora 19 development cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.) More information and reason for this action is here: https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19 This message is a notice that Fedora 19 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 19. It is Fedora's policy to close all bug reports from releases that are no longer maintained. Approximately 4 (four) weeks from now this bug will be closed as EOL if it remains open with a Fedora 'version' of '19'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 19 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |