Bug 689720

Summary: SELinux is preventing /usr/sbin/sendmail.sendmail from 'sendto' accesses on the unix_dgram_socket /dev/log.
Product: [Fedora] Fedora Reporter: tuxor <acc-bugz-redhat>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: dwalsh, hrafn, jamescape777, mgrepl, social
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:20e944f58f2f049f179104b56da26627c3d489a642ca13b799923952f1a4b031
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-22 11:57:17 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 tuxor 2011-03-22 09:33:14 UTC
SELinux is preventing /usr/sbin/sendmail.sendmail from 'sendto' accesses on the unix_dgram_socket /dev/log.

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

If you believe that sendmail.sendmail should be allowed sendto access on the log unix_dgram_socket 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-s0:c0.c1023
Target Context                system_u:system_r:init_t:s0
Target Objects                /dev/log [ unix_dgram_socket ]
Source                        sendmail
Source Path                   /usr/sbin/sendmail.sendmail
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           sendmail-8.14.4-20.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-5.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38-1.fc15.x86_64 #1 SMP
                              Tue Mar 15 05:29:00 UTC 2011 x86_64 x86_64
Alert Count                   2
First Seen                    Di 22 Mär 2011 10:30:09 CET
Last Seen                     Di 22 Mär 2011 10:30:09 CET
Local ID                      2685402d-2c70-4ad8-9c0a-0b81d7d5d018

Raw Audit Messages
type=AVC msg=audit(1300786209.738:162): avc:  denied  { sendto } for  pid=8312 comm="sendmail" path="/dev/log" scontext=system_u:system_r:system_mail_t:s0-s0:c0.c1023 tcontext=system_u:system_r:init_t:s0 tclass=unix_dgram_socket


type=SYSCALL msg=audit(1300786209.738:162): arch=x86_64 syscall=connect success=no exit=EACCES a0=7 a1=7f7f6979b7c0 a2=6e a3=0 items=0 ppid=2535 pid=8312 auid=0 uid=51 gid=51 euid=51 suid=51 fsuid=51 egid=51 sgid=51 fsgid=51 tty=(none) ses=2 comm=sendmail exe=/usr/sbin/sendmail.sendmail subj=system_u:system_r:system_mail_t:s0-s0:c0.c1023 key=(null)

Hash: sendmail,system_mail_t,init_t,unix_dgram_socket,sendto

audit2allow

#============= system_mail_t ==============
allow system_mail_t init_t:unix_dgram_socket sendto;

audit2allow -R

#============= system_mail_t ==============
allow system_mail_t init_t:unix_dgram_socket sendto;

Comment 1 Daniel Walsh 2011-03-22 11:57:17 UTC

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