Bug 632951
| Summary: | SELinux is preventing /usr/libexec/dovecot/dovecot-lda "write" access on /tmp. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jiri Kastner <jkastner> |
| Component: | selinux-policy | Assignee: | Daniel Walsh <dwalsh> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 13 | CC: | dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:24fb3d637bcea3ca275a494a628c1fc9dc28e705230453c1a79219c99053fc6c | ||
| Fixed In Version: | selinux-policy-3.7.19-57.fc13 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-09-22 00:38:41 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
Jiri Kastner
2010-09-12 07:21:08 UTC
Summary: SELinux is preventing /usr/libexec/dovecot/dovecot-lda "remove_name" access on dovecot.lda.c5dadc05b5ccd36d. Detailed Description: [SELinux is in permissive mode. This access was not denied.] SELinux denied access requested by deliver. It is not expected that this access is required by deliver and this access may signal an intrusion attempt. It is also possible that the specific version or configuration of the application is causing it to require additional access. Allowing Access: You can generate a local policy module to allow this access - see FAQ (http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug report. Additional Information: Source Context system_u:system_r:dovecot_deliver_t:s0 Target Context system_u:object_r:tmp_t:s0 Target Objects dovecot.lda.c5dadc05b5ccd36d [ dir ] Source deliver Source Path /usr/libexec/dovecot/dovecot-lda Port <Unknown> Host localhost Source RPM Packages dovecot-2.0.1-1_118.fc13 Target RPM Packages Policy RPM selinux-policy-3.7.19-56.fc13 Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Plugin Name catchall Host Name localhost.localdomain Platform Linux localhost.localdomain 2.6.34.6-54.fc13.x86_64 #1 SMP Sun Sep 5 17:16:27 UTC 2010 x86_64 x86_64 Alert Count 2 First Seen Sun 12 Sep 2010 09:18:13 AM CEST Last Seen Sun 12 Sep 2010 09:18:13 AM CEST Local ID 2b9edd86-e82b-4867-9098-5686782d8fd3 Line Numbers Raw Audit Messages node=localhost type=AVC msg=audit(1284275893.818:65): avc: denied { remove_name } for pid=4355 comm="deliver" name="dovecot.lda.c5dadc05b5ccd36d" dev=sda7 ino=3277005 scontext=system_u:system_r:dovecot_deliver_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=dir node=localhost type=AVC msg=audit(1284275893.818:65): avc: denied { unlink } for pid=4355 comm="deliver" name="dovecot.lda.c5dadc05b5ccd36d" dev=sda7 ino=3277005 scontext=system_u:system_r:dovecot_deliver_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=file node=localhost type=SYSCALL msg=audit(1284275893.818:65): arch=c000003e syscall=87 success=yes exit=0 a0=10273c8 a1=c2 a2=0 a3=0 items=0 ppid=4354 pid=4355 auid=4294967295 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=4294967295 comm="deliver" exe="/usr/libexec/dovecot/dovecot-lda" subj=system_u:system_r:dovecot_deliver_t:s0 key=(null) dovecot-2.0.1-1_118.fc13.x86_64 dovecot-managesieve-2.0-10.fc13.x86_64 dovecot-pigeonhole-2.0-10.fc13.x86_64 fetchmail running /usr/libexec/dovecot/deliver directly, no idea what exactly is dovecot doing on /tmp, but it started after added policy regarding appending messages to /var/log/dovecot/deliver-errors.log (bug 629731). content of /var/log/dovecot/deliver-errors.log before switching to permissive mode: Sep 10 11:28:16 lda(username): Error: safe_mkstemp(/tmp/dovecot.lda.) failed: Permission denied Sep 10 11:38:17 lda(username): Error: safe_mkstemp(/tmp/dovecot.lda.) failed: Permission denied Fixed in selinux-policy-3.7.19-56.fc13. Summary: SELinux is preventing /usr/libexec/dovecot/dovecot-lda "remove_name" access on dovecot.lda.af1db9f598b6c099. Detailed Description: [SELinux is in permissive mode. This access was not denied.] SELinux denied access requested by deliver. It is not expected that this access is required by deliver and this access may signal an intrusion attempt. It is also possible that the specific version or configuration of the application is causing it to require additional access. Allowing Access: You can generate a local policy module to allow this access - see FAQ (http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug report. Additional Information: Source Context system_u:system_r:dovecot_deliver_t:s0 Target Context system_u:object_r:tmp_t:s0 Target Objects dovecot.lda.af1db9f598b6c099 [ dir ] Source deliver Source Path /usr/libexec/dovecot/dovecot-lda Port <Unknown> Host localhost Source RPM Packages dovecot-2.0.1-1_118.fc13 Target RPM Packages Policy RPM selinux-policy-3.7.19-56.fc13 Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Plugin Name catchall Host Name localhost.localdomain Platform Linux localhost.localdomain 2.6.34.6-54.fc13.x86_64 #1 SMP Sun Sep 5 17:16:27 UTC 2010 x86_64 x86_64 Alert Count 2 First Seen Mon 13 Sep 2010 02:22:31 PM CEST Last Seen Mon 13 Sep 2010 02:22:31 PM CEST Local ID ca4eee30-2ef6-49fd-a287-d65a1a22a0e9 Line Numbers Raw Audit Messages node=localhost type=AVC msg=audit(1284380551.81:54): avc: denied { remove_name } for pid=3980 comm="deliver" name="dovecot.lda.af1db9f598b6c099" dev=sda7 ino=3277067 scontext=system_u:system_r:dovecot_deliver_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=dir node=localhost type=AVC msg=audit(1284380551.81:54): avc: denied { unlink } for pid=3980 comm="deliver" name="dovecot.lda.af1db9f598b6c099" dev=sda7 ino=3277067 scontext=system_u:system_r:dovecot_deliver_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=file node=localhost type=SYSCALL msg=audit(1284380551.81:54): arch=c000003e syscall=87 success=yes exit=0 a0=22cd3c8 a1=c2 a2=0 a3=0 items=0 ppid=3979 pid=3980 auid=4294967295 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=4294967295 comm="deliver" exe="/usr/libexec/dovecot/dovecot-lda" subj=system_u:system_r:dovecot_deliver_t:s0 key=(null) I meant "Fixed in selinux-policy-3.7.19-57.fc13" selinux-policy-3.7.19-57.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/selinux-policy-3.7.19-57.fc13 selinux-policy-3.7.19-57.fc13 has been pushed to the Fedora 13 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.7.19-57.fc13 selinux-policy-3.7.19-57.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report. |