Bug 695875

Summary: SELinux is preventing /usr/bin/procmail from 'read' accesses on the fifo_file fifo_file.
Product: [Fedora] Fedora Reporter: Jeff MacDonald <jam>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dwalsh, jam, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:809390bf2221e318ccbf9da0aa7becc7898959ba017580382fe07f643390539c
Fixed In Version: selinux-policy-3.9.7-40.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-24 23:59:52 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 Jeff MacDonald 2011-04-12 20:36:35 UTC
SELinux is preventing /usr/bin/procmail from 'read' accesses on the fifo_file fifo_file.

*****  Plugin catchall (50.5 confidence) suggests  ***************************

If you believe that procmail should be allowed read access on the fifo_file fifo_file 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 procmail /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

*****  Plugin leaks (50.5 confidence) suggests  ******************************

If you want to ignore procmail trying to read access the fifo_file fifo_file, because you believe it should not need this access.
Then you should report this as a bug.  
You can generate a local policy module to dontaudit this access.
Do
# grep /usr/bin/procmail /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:procmail_t:s0
Target Context                system_u:system_r:postfix_master_t:s0
Target Objects                fifo_file [ fifo_file ]
Source                        procmail
Source Path                   /usr/bin/procmail
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           procmail-3.22-25.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-37.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.12-88.fc14.i686 #1 SMP Thu Mar 31 22:12:38
                              UTC 2011 i686 i686
Alert Count                   1
First Seen                    Tue 12 Apr 2011 04:33:44 PM EDT
Last Seen                     Tue 12 Apr 2011 04:33:44 PM EDT
Local ID                      bc1c39e4-66ac-446e-b009-7c93b66cf996

Raw Audit Messages
type=AVC msg=audit(1302640424.467:39711): avc:  denied  { read } for  pid=2319 comm="procmail" path="pipe:[14673]" dev=pipefs ino=14673 scontext=system_u:system_r:procmail_t:s0 tcontext=system_u:system_r:postfix_master_t:s0 tclass=fifo_file


type=AVC msg=audit(1302640424.467:39711): avc:  denied  { write } for  pid=2319 comm="procmail" path="pipe:[14673]" dev=pipefs ino=14673 scontext=system_u:system_r:procmail_t:s0 tcontext=system_u:system_r:postfix_master_t:s0 tclass=fifo_file


type=SYSCALL msg=audit(1302640424.467:39711): arch=i386 syscall=execve success=yes exit=0 a0=9d272e8 a1=9d271b0 a2=9d26640 a3=9d271b0 items=0 ppid=2271 pid=2319 auid=4294967295 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=4294967295 comm=procmail exe=/usr/bin/procmail subj=system_u:system_r:procmail_t:s0 key=(null)

Hash: procmail,procmail_t,postfix_master_t,fifo_file,read

audit2allow

#============= procmail_t ==============
allow procmail_t postfix_master_t:fifo_file { read write };

audit2allow -R

#============= procmail_t ==============
allow procmail_t postfix_master_t:fifo_file { read write };

Comment 1 Miroslav Grepl 2011-04-13 10:06:47 UTC
Fixed in selinux-policy-3.9.7-38.fc14

Comment 2 Fedora Update System 2011-04-21 14:50:00 UTC
selinux-policy-3.9.7-40.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-40.fc14

Comment 3 Fedora Update System 2011-04-21 22:25:34 UTC
Package selinux-policy-3.9.7-40.fc14:
* should fix your issue,
* was pushed to the Fedora 14 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.9.7-40.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-40.fc14
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-04-24 23:58:47 UTC
selinux-policy-3.9.7-40.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.