Bug 842065
| Summary: | SELinux is preventing /usr/libexec/postfix/cleanup from (getattr|getopt) access on the tcp_socket | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Anthony Messina <amessina> |
| Component: | selinux-policy-targeted | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED ERRATA | QA Contact: | Ben Levenson <benl> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 17 | CC: | dwalsh |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-08-01 18:22: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: | |||
Are you seeing any breakage or is this just a leak, any reason for cleanup to use this tcp socket. I am in permissive mode with this one so it works. I'm trying to use OpenDKIM which is running on 127.0.0.1:8891 as a milter, which is performed via Postfix's cleanup command -- man (8) cleanup. Ok I allowed it in Rawhide. Added to F17. selinux-policy-3.10.0-142.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-142.fc17 Package selinux-policy-3.10.0-142.fc17: * should fix your issue, * was pushed to the Fedora 17 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.10.0-142.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-11215/selinux-policy-3.10.0-142.fc17 then log in and leave karma (feedback). selinux-policy-3.10.0-142.fc17 fixes this issue. Please update karma. I did, just before leaving the feedback here ;) Bodhi: amessina - 2012-07-30 21:23:24 Thank you. selinux-policy-3.10.0-142.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report. |
When using OpenDKIM with Postfix and a socket of localhost:8891, I receive the following AVCs: type=AVC msg=audit(1342882917.293:12089): avc: denied { getattr } for pid=31420 comm="cleanup" laddr=127.0.0.1 lport=34042 faddr=127.0.0.1 fport=8891 scontext=system_u:system_r:postfix_cleanup_t:s0 tcontext=system_u:system_r:postfix_smtpd_t:s0 tclass=tcp_socket type=SYSCALL msg=audit(1342882917.293:12089): arch=x86_64 syscall=getsockname success=yes exit=0 a0=10 a1=7fff5f7626d0 a2=7fff5f7626cc a3=0 items=0 ppid=31413 pid=31420 auid=4294967295 uid=89 gid=89 euid=89 suid=89 fsuid=89 egid=89 sgid=89 fsgid=89 tty=(none) ses=4294967295 comm=cleanup exe=/usr/libexec/postfix/cleanup subj=system_u:system_r:postfix_cleanup_t:s0 key=(null) ---- type=AVC msg=audit(1342882917.293:12090): avc: denied { getopt } for pid=31420 comm="cleanup" laddr=127.0.0.1 lport=34042 faddr=127.0.0.1 fport=8891 scontext=system_u:system_r:postfix_cleanup_t:s0 tcontext=system_u:system_r:postfix_smtpd_t:s0 tclass=tcp_socket type=SYSCALL msg=audit(1342882917.293:12090): arch=x86_64 syscall=getsockopt success=yes exit=0 a0=10 a1=6 a2=2 a3=7fff5f762698 items=0 ppid=31413 pid=31420 auid=4294967295 uid=89 gid=89 euid=89 suid=89 fsuid=89 egid=89 sgid=89 fsgid=89 tty=(none) ses=4294967295 comm=cleanup exe=/usr/libexec/postfix/cleanup subj=system_u:system_r:postfix_cleanup_t:s0 key=(null)