Bug 508152

Summary: setroubleshoot: SELinux is preventing sendmail (sendmail_t) "write" tmpfs_t.
Product: [Fedora] Fedora Reporter: Antonio A. Olivares <olivares14031>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dwalsh, jkubin, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:283082295e033aba96e5216f410f77e9066b42dcaed97a9ce71b1a6fb0fe1c46
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-26 12:56:20 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 Antonio A. Olivares 2009-06-25 20:23:45 UTC
The following was filed automatically by setroubleshoot:

Summary:

SELinux is preventing sendmail (sendmail_t) "write" tmpfs_t.

Detailed Description:

[SELinux is in permissive mode, the operation would have been denied but was
permitted due to permissive mode.]

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://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Or you can disable
SELinux protection altogether. Disabling SELinux protection is not recommended.
Please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi)
against this package.

Additional Information:

Source Context                system_u:system_r:sendmail_t:SystemLow
Target Context                system_u:object_r:tmpfs_t:SystemLow
Target Objects                log [ sock_file ]
Source                        sendmail
Source Path                   /usr/sbin/sendmail.sendmail
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           sendmail-8.14.3-5.fc11
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.19-4.fc12
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31-0.24.rc0.git18.fc12.i586 #1 SMP Mon Jun 22
                              16:26:17 EDT 2009 i686 i686
Alert Count                   2
First Seen                    Thu 25 Jun 2009 02:26:40 PM CDT
Last Seen                     Thu 25 Jun 2009 03:17:15 PM CDT
Local ID                      c837966e-32d3-4ed9-abc3-e8ba1ae7ad9d
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1245961035.191:153): avc:  denied  { write } for  pid=6630 comm="sendmail" name="log" dev=tmpfs ino=7121 scontext=system_u:system_r:sendmail_t:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=sock_file

node=(removed) type=SYSCALL msg=audit(1245961035.191:153): arch=40000003 syscall=102 success=yes exit=0 a0=3 a1=bfca93cc a2=630ff4 a3=ffffffc8 items=0 ppid=1556 pid=6630 auid=4294967295 uid=51 gid=51 euid=51 suid=51 fsuid=51 egid=51 sgid=51 fsgid=51 tty=(none) ses=4294967295 comm="sendmail" exe="/usr/sbin/sendmail.sendmail" subj=system_u:system_r:sendmail_t:s0 key=(null)


audit2allow suggests:

#============= sendmail_t ==============
allow sendmail_t tmpfs_t:sock_file write;

Comment 1 Daniel Walsh 2009-06-26 12:56:20 UTC

*** This bug has been marked as a duplicate of bug 508150 ***