Bug 557952 - SELinux is preventing /usr/bin/python "connect" access.
Summary: SELinux is preventing /usr/bin/python "connect" access.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:d289f32274f...
: 557951 557954 558839 558840 558841 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-22 21:23 UTC by Chris Recker
Modified: 2010-02-03 06:11 UTC (History)
8 users (show)

Fixed In Version: 3.6.32-78.fc12
Clone Of:
Environment:
Last Closed: 2010-02-02 01:22:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Chris Recker 2010-01-22 21:23:37 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-69.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.x86_64 #1
                              SMP Mon Dec 21 05:33:33 UTC 2009 x86_64 x86_64
Alert Count                   3
First Seen                    Fri 22 Jan 2010 12:20:12 PM CST
Last Seen                     Fri 22 Jan 2010 12:20:12 PM CST
Local ID                      2d68e214-5167-4852-b6b1-c9b76417b76f
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1264184412.156:28018): avc:  denied  { connect } for  pid=13834 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(1264184412.156:28018): avc:  denied  { write } for  pid=13834 comm="smoltSendProfil" name="log" dev=tmpfs ino=10795 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(1264184412.156:28018): avc:  denied  { sendto } for  pid=13834 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(1264184412.156:28018): arch=c000003e syscall=42 success=yes exit=4294967424 a0=6 a1=38d37761a0 a2=6e a3=676f6c2f7665642f items=0 ppid=13832 pid=13834 auid=494 uid=494 gid=485 euid=494 suid=494 fsuid=494 egid=485 sgid=485 fsgid=485 tty=(none) ses=74 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-69.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 Miroslav Grepl 2010-01-25 10:05:49 UTC
You can add these rules for now using

# grep avc /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Fixed in selinux-policy-3.6.32-77.fc12

Comment 2 Miroslav Grepl 2010-01-25 10:07:15 UTC
*** Bug 557951 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2010-01-25 10:09:59 UTC
*** Bug 557954 has been marked as a duplicate of this bug. ***

Comment 4 Miroslav Grepl 2010-01-27 12:41:07 UTC
*** Bug 558839 has been marked as a duplicate of this bug. ***

Comment 5 Miroslav Grepl 2010-01-27 12:42:07 UTC
*** Bug 558841 has been marked as a duplicate of this bug. ***

Comment 6 Miroslav Grepl 2010-01-27 14:46:20 UTC
*** Bug 558840 has been marked as a duplicate of this bug. ***

Comment 7 Fedora Update System 2010-01-28 09:23:08 UTC
selinux-policy-3.6.32-78.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-78.fc12

Comment 8 Fedora Update System 2010-01-29 03:28:24 UTC
selinux-policy-3.6.32-78.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1207

Comment 9 Fedora Update System 2010-02-02 01:20:29 UTC
selinux-policy-3.6.32-78.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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