Bug 1044752

Summary: SELinux is preventing /usr/sbin/postdrop from 'write' accesses on the directory /var/spool/postfix/maildrop.
Product: [Fedora] Fedora Reporter: Jeremy Fitzhardinge <jeremy>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:3b865cf4d63207b778bdb9819706db9be4fec079f89ff21ddfe91577bf16be2e
Fixed In Version: selinux-policy-3.12.1-116.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-16 07:10:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jeremy Fitzhardinge 2013-12-18 22:24:01 UTC
Description of problem:
Repeatedly reported in /var/log/maillog by postfix.
SELinux is preventing /usr/sbin/postdrop from 'write' accesses on the directory /var/spool/postfix/maildrop.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that postdrop should be allowed write access on the maildrop directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep postdrop /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:system_mail_t:s0-s0:c0.c1023
Target Context                system_u:object_r:postfix_spool_maildrop_t:s0
Target Objects                /var/spool/postfix/maildrop [ dir ]
Source                        postdrop
Source Path                   /usr/sbin/postdrop
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           postfix-2.10.2-2.fc20.x86_64
Target RPM Packages           postfix-2.10.2-2.fc20.x86_64
Policy RPM                    selinux-policy-3.12.1-106.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.11.10-301.fc20.x86_64 #1 SMP Thu
                              Dec 5 14:01:17 UTC 2013 x86_64 x86_64
Alert Count                   2104
First Seen                    2013-12-18 03:49:41 PST
Last Seen                     2013-12-18 14:22:36 PST
Local ID                      39c6828b-91e2-4283-a47e-94696c6efd66

Raw Audit Messages
type=AVC msg=audit(1387405356.495:1736): avc:  denied  { write } for  pid=22375 comm="postdrop" name="maildrop" dev="dm-2" ino=188640 scontext=system_u:system_r:system_mail_t:s0-s0:c0.c1023 tcontext=system_u:object_r:postfix_spool_maildrop_t:s0 tclass=dir


type=SYSCALL msg=audit(1387405356.495:1736): arch=x86_64 syscall=open success=no exit=EACCES a0=7f207877f450 a1=c2 a2=1a4 a3=0 items=0 ppid=22371 pid=22375 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=90 sgid=90 fsgid=90 ses=12 tty=(none) comm=postdrop exe=/usr/sbin/postdrop subj=system_u:system_r:system_mail_t:s0-s0:c0.c1023 key=(null)

Hash: postdrop,system_mail_t,postfix_spool_maildrop_t,dir,write

Additional info:
reporter:       libreport-2.1.10
hashmarkername: setroubleshoot
kernel:         3.11.10-301.fc20.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-12-19 20:18:19 UTC
759bfda0f8912e14061cc6fee67639d5709f3338 fixes this in git.

Comment 2 Fedora Update System 2014-01-13 22:56:03 UTC
selinux-policy-3.12.1-116.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-116.fc20

Comment 3 Fedora Update System 2014-01-15 05:57:43 UTC
Package selinux-policy-3.12.1-116.fc20:
* should fix your issue,
* was pushed to the Fedora 20 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.12.1-116.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-0806/selinux-policy-3.12.1-116.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-01-16 07:10:22 UTC
selinux-policy-3.12.1-116.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.