Bug 1215186

Summary: SELinux is preventing sendmail from 'read' accesses on the file mail.
Product: [Fedora] Fedora Reporter: suv <sayantan7>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:ecf60ea61bee4da313f2bc57003032446c97e68c1fdc99ca6c84efeda50bae80
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-12 08:32:16 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 suv 2015-04-24 14:00:51 UTC
Description of problem:
install sendmail 
start sendmail
the alert comes
SELinux is preventing sendmail from 'read' accesses on the file mail.

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

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

Additional Information:
Source Context                system_u:system_r:system_mail_t:s0
Target Context                system_u:object_r:root_t:s0
Target Objects                mail [ file ]
Source                        sendmail
Source Path                   sendmail
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-105.11.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.19.3-200.fc21.x86_64 #1 SMP Thu
                              Mar 26 21:39:42 UTC 2015 x86_64 x86_64
Alert Count                   1319
First Seen                    2015-04-23 15:06:54 BST
Last Seen                     2015-04-24 14:47:50 BST
Local ID                      2482918c-67ce-4544-8fe1-dae9f045ed1e

Raw Audit Messages
type=AVC msg=audit(1429883270.218:725): avc:  denied  { read } for  pid=4610 comm="sendmail" name="mail" dev="dm-0" ino=3810839 scontext=system_u:system_r:system_mail_t:s0 tcontext=system_u:object_r:root_t:s0 tclass=file permissive=0


Hash: sendmail,system_mail_t,root_t,file,read

Version-Release number of selected component:
selinux-policy-3.13.1-105.11.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.19.3-200.fc21.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2015-05-12 08:32:16 UTC

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