Bug 558840 - SELinux is preventing /usr/bin/python "connect" access.
Summary: SELinux is preventing /usr/bin/python "connect" access.
Keywords:
Status: CLOSED DUPLICATE of bug 557952
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:2e134f621cc...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-26 14:50 UTC by Varghese Devassy
Modified: 2010-01-27 14:46 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-01-27 14:46:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Varghese Devassy 2010-01-26 14:50:13 UTC
Summary:

SELinux is preventing /usr/bin/python "connect" access.

Detailed Description:

[smoltSendProfil has a permissive type (smoltclient_t). This access was not
denied.]

SELinux denied access requested by smoltSendProfil. It is not expected that this
access is required by smoltSendProfil 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) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:smoltclient_t:s0-s0:c0.c1023
Target Context                system_u:system_r:smoltclient_t:s0-s0:c0.c1023
Target Objects                None [ unix_dgram_socket ]
Source                        smoltSendProfil
Source Path                   /usr/bin/python
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.6.2-2.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-66.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.9-174.fc12.i686.PAE #1 SMP Mon
                              Dec 21 06:04:56 UTC 2009 i686 i686
Alert Count                   3
First Seen                    Wed 20 Jan 2010 12:20:08 PM EST
Last Seen                     Wed 20 Jan 2010 12:20:08 PM EST
Local ID                      e7e70c18-b0e4-4053-8db6-00ebf4b12d1b
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1264008008.990:48): avc:  denied  { connect } for  pid=2701 comm="smoltSendProfil" scontext=system_u:system_r:smoltclient_t:s0-s0:c0.c1023 tcontext=system_u:system_r:smoltclient_t:s0-s0:c0.c1023 tclass=unix_dgram_socket

node=(removed) type=AVC msg=audit(1264008008.990:48): avc:  denied  { write } for  pid=2701 comm="smoltSendProfil" name="log" dev=tmpfs ino=9288 scontext=system_u:system_r:smoltclient_t:s0-s0:c0.c1023 tcontext=system_u:object_r:devlog_t:s0 tclass=sock_file

node=(removed) type=AVC msg=audit(1264008008.990:48): avc:  denied  { sendto } for  pid=2701 comm="smoltSendProfil" path="/dev/log" scontext=system_u:system_r:smoltclient_t:s0-s0:c0.c1023 tcontext=system_u:system_r:syslogd_t:s0 tclass=unix_dgram_socket

node=(removed) type=SYSCALL msg=audit(1264008008.990:48): arch=40000003 syscall=102 success=yes exit=0 a0=3 a1=bfc5c8dc a2=280ff4 a3=ffffffc8 items=0 ppid=2699 pid=2701 auid=494 uid=494 gid=484 euid=494 suid=494 fsuid=494 egid=484 sgid=484 fsgid=484 tty=(none) ses=6 comm="smoltSendProfil" exe="/usr/bin/python" subj=system_u:system_r:smoltclient_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-66.fc12,catchall,smoltSendProfil,smoltclient_t,smoltclient_t,unix_dgram_socket,connect
audit2allow suggests:

#============= smoltclient_t ==============
allow smoltclient_t devlog_t:sock_file write;
allow smoltclient_t self:unix_dgram_socket connect;
allow smoltclient_t syslogd_t:unix_dgram_socket sendto;

Comment 1 Daniel Walsh 2010-01-27 14:39:18 UTC
Add

logging_send_syslog_msg(smoltclient_t)

Comment 2 Miroslav Grepl 2010-01-27 14:46:20 UTC

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


Note You need to log in before you can comment on or make changes to this bug.