Bug 542253

Summary: SELinux is preventing /usr/sbin/sendmail.sendmail access to a leaked unix_stream_socket file descriptor.
Product: [Fedora] Fedora Reporter: chrys87
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: chrys87, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:c1e9443caf893d4f69ec0e15363f9df7b4c6416c4e699e6526567a7b1badc2a7
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-30 12:33:37 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 chrys87 2009-11-29 00:51:48 UTC
Zusammenfassung:

SELinux is preventing /usr/sbin/sendmail.sendmail access to a leaked
unix_stream_socket file descriptor.

Detaillierte Beschreibung:

[sendmail hat einen toleranten Typ (system_mail_t). Dieser Zugriff wurde nicht
verweigert.]

SELinux denied access requested by the sendmail command. It looks like this is
either a leaked descriptor or sendmail output was redirected to a file it is not
allowed to access. Leaks usually can be ignored since SELinux is just closing
the leak and reporting the error. The application does not use the descriptor,
so it will run properly. If this is a redirection, you will not get output in
the unix_stream_socket. You should generate a bugzilla on selinux-policy, and it
will get routed to the appropriate package. You can safely ignore this avc.

Zugriff erlauben:

You can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385)

Zusätzliche Informationen:

Quellkontext                  system_u:system_r:system_mail_t:s0
Zielkontext                   system_u:system_r:fail2ban_t:s0
Zielobjekte                   unix_stream_socket [ unix_stream_socket ]
Quelle                        sendmail
Quellen-Pfad                  /usr/sbin/sendmail.sendmail
Port                          <Unbekannt>
Host                          (removed)
Quellen-RPM-Pakete            sendmail-8.14.3-8.fc12
Ziel-RPM-Pakete               
RPM-Richtlinie                selinux-policy-3.6.32-46.fc12
SELinux aktiviert             True
Richtlinienversion            targeted
Enforcing-Modus               Enforcing
Plugin-Name                   leaks
Hostname                      (removed)
Plattform                     Linux (removed) 2.6.31.5-127.fc12.i686.PAE
                              #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 i686
Anzahl der Alarme             38
Zuerst gesehen                Fr 20 Nov 2009 08:42:16 CET
Zuletzt gesehen               Sa 28 Nov 2009 23:37:18 CET
Lokale ID                     ed848cda-32bd-484c-b485-30af68e95006
Zeilennummern                 

Raw-Audit-Meldungen           

node=(removed) type=AVC msg=audit(1259447838.973:9): avc:  denied  { read write } for  pid=1319 comm="sendmail" path="socket:[11382]" dev=sockfs ino=11382 scontext=system_u:system_r:system_mail_t:s0 tcontext=system_u:system_r:fail2ban_t:s0 tclass=unix_stream_socket

node=(removed) type=AVC msg=audit(1259447838.973:9): avc:  denied  { read write } for  pid=1319 comm="sendmail" path="socket:[11390]" dev=sockfs ino=11390 scontext=system_u:system_r:system_mail_t:s0 tcontext=system_u:system_r:fail2ban_t:s0 tclass=unix_dgram_socket

node=(removed) type=AVC msg=audit(1259447838.973:9): avc:  denied  { read write } for  pid=1319 comm="sendmail" path="socket:[11400]" dev=sockfs ino=11400 scontext=system_u:system_r:system_mail_t:s0 tcontext=system_u:system_r:fail2ban_t:s0 tclass=unix_stream_socket

node=(removed) type=SYSCALL msg=audit(1259447838.973:9): arch=40000003 syscall=11 success=yes exit=0 a0=95fe810 a1=95ff7d8 a2=95ff6b0 a3=95ff7d8 items=0 ppid=1317 pid=1319 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=488 sgid=488 fsgid=488 tty=(none) ses=4294967295 comm="sendmail" exe="/usr/sbin/sendmail.sendmail" subj=system_u:system_r:system_mail_t:s0 key=(null)



Hash String generated from  selinux-policy-3.6.32-46.fc12,leaks,sendmail,system_mail_t,fail2ban_t,unix_stream_socket,read,write
audit2allow suggests:

#============= system_mail_t ==============
allow system_mail_t fail2ban_t:unix_dgram_socket { read write };
allow system_mail_t fail2ban_t:unix_stream_socket { read write };

Comment 1 Miroslav Grepl 2009-11-30 12:33:37 UTC

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