Bug 983551
Summary: | SELinux blocks OpenDMARC (<-> Postfix) | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Patrick <rh_bugzilla> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.4 | CC: | dwalsh, herrold, mmalik, patrick, rh_bugzilla |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | selinux-policy-3.7.19-228.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-11-21 10:45:15 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: | |||
Bug Depends On: | |||
Bug Blocks: | 905304 |
Description
Patrick
2013-07-11 12:56:55 UTC
We also need a policy for opendmarc: # service opendmarc status opendmarc is stopped # service opendmarc start Starting OpenDMARC Milter: [ OK ] # service opendmarc status opendmarc (pid 16994) is running... # ps -efZ | grep dmarc unconfined_u:system_r:initrc_t:s0 498 16994 1 0 05:46 ? 00:00:00 /usr/sbin/opendmarc -c /etc/opendmarc.conf -P /var/run/opendmarc/opendmarc.pid unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 root 17007 12434 0 05:46 pts/0 00:00:00 grep dmarc # Testing an SELinux policy is preferably done on EL6 since that's what my mailserver runs on. So it would be most appreciated if you could make a policy available for EL6 first or in addition to one for Fedora. Thanks! Could you try to execute # chcon -t dkim_milter_exec_t /usr/sbin/opendmarc # chcon -R -t dkim_milter_data_t /var/run/opendmarc /var/spool/opendmarc and re-test it. Thank you. Hi Miroslav. Here are the results: Old: $ ls -Z /usr/sbin/opendmarc -rwxr-xr-x. root root system_u:object_r:bin_t:s0 /usr/sbin/opendmarc $ ls -Z /var/spool/opendmarc/ -rw-rw----. opendmarc mail unconfined_u:object_r:var_spool_t:s0 opendmarc.dat Change: $ sudo chcon -t dkim_milter_exec_t /usr/sbin/opendmarc $ chcon -R -t dkim_milter_data_t /var/run/opendmarc /var/spool/opendmarc New: $ ls -Z /usr/sbin/opendmarc -rwxr-xr-x. root root system_u:object_r:dkim_milter_exec_t:s0 /usr/sbin/opendmarc $ ls -Z /var/run/opendmarc /var/spool/opendmarc -rw-rw----. opendmarc mail unconfined_u:object_r:dkim_milter_data_t:s0 opendmarc.dat When sending mail I no longer see any AVCs in enforced or in permissive mode in /var/log/audit/audit.log. Please note that I could only test it with opendmarc using a socket. I added to Fedora commit fa78971ce5af7886b1a5f799b558ca38a4086411 Author: Miroslav Grepl <mgrepl> Date: Wed Jul 24 07:21:15 2013 +0200 Add support for OpenDMARC and will back port. Thank you for testing. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1598.html |