Bug 604902

Summary: SELinux is preventing sendmail "write" access on /var/spool/fcron/fcr-8yxZH1 (deleted).
Product: [Fedora] Fedora Reporter: William Hill <wlh2008>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: dwalsh, mgrepl, wlh2008
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:c3e6505f4b9dae060744810845dc86ce71cb7c77e7b4e964c1d37e838babea7a
Fixed In Version: selinux-policy-3.7.19-33.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-06 17:08:53 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 William Hill 2010-06-17 00:06:47 UTC
Summary:

SELinux is preventing sendmail "write" access on /var/spool/fcron/fcr-8yxZH1
(deleted).

Detailed Description:

SELinux denied access requested by sendmail. It is not expected that this access
is required by sendmail 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:system_mail_t:SystemLow-
                              SystemHigh
Target Context                system_u:object_r:cron_spool_t:SystemLow
Target Objects                /var/spool/fcron/fcr-8yxZH1 (deleted) [ file ]
Source                        sendmail
Source Path                   sendmail
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-23.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.33.5-124.fc13.i686.PAE #1 SMP Fri Jun 11
                              09:42:24 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Wed 16 Jun 2010 08:00:02 PM EDT
Last Seen                     Wed 16 Jun 2010 08:00:02 PM EDT
Local ID                      7512fe4d-1b09-4807-a984-a3e091f113d2
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1276732802.274:202): avc:  denied  { write } for  pid=19134 comm="sendmail" path=2F7661722F73706F6F6C2F6663726F6E2F6663722D3879785A4831202864656C6574656429 dev=sda7 ino=729089 scontext=system_u:system_r:system_mail_t:s0-s0:c0.c1023 tcontext=system_u:object_r:cron_spool_t:s0 tclass=file



Hash String generated from  catchall,sendmail,system_mail_t,cron_spool_t,file,write
audit2allow suggests:

#============= system_mail_t ==============
allow system_mail_t cron_spool_t:file write;

Comment 1 William Hill 2010-06-17 00:14:29 UTC
I am not certain where to post this - but you cannot pull down seedit using yum because it is considered in conflict with the targeted, ML, etc policies. This interferes in bug hunting on selinux.( I had to pull down the rpm and install it as an archive ).

Comment 2 Daniel Walsh 2010-06-17 13:08:35 UTC
seedit is not a package you should be installing.

This looks like a redirection of stdout which is being denied

Miroslav,

Add

	cron_rw_inherited_user_spool_files(system_mail_t)

to mta.te

Comment 3 Miroslav Grepl 2010-06-21 19:28:59 UTC
Fixed in selinux-policy-3.7.19-31.fc13.

Comment 4 Fedora Update System 2010-06-30 19:54:35 UTC
selinux-policy-3.7.19-33.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/selinux-policy-3.7.19-33.fc13

Comment 5 Fedora Update System 2010-07-01 18:48:26 UTC
selinux-policy-3.7.19-33.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: http://admin.fedoraproject.org/updates/selinux-policy-3.7.19-33.fc13

Comment 6 Fedora Update System 2010-07-06 17:06:52 UTC
selinux-policy-3.7.19-33.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.