Bug 566824

Summary: SELinux is preventing /usr/bin/python "connect" access .
Product: [Fedora] Fedora Reporter: travistrash
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl, travistrash
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:368d6aa053becd7873987797b7a5f32da53bc7f86a4125ea2cc79b481c787a75
Fixed In Version: selinux-policy-3.6.32-92.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-04 00:16:50 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 travistrash 2010-02-19 21:18:01 UTC
Summary:

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

Detailed Description:

[system-config-f has a permissive type (firewallgui_t). This access was not
denied.]

SELinux denied access requested by system-config-f. It is not expected that this
access is required by system-config-f 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://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:firewallgui_t:s0-s0:c0.c1023
Target Context                system_u:system_r:firewallgui_t:s0-s0:c0.c1023
Target Objects                None [ unix_dgram_socket ]
Source                        system-config-f
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-84.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.12-174.2.19.fc12.i686 #1 SMP Thu
                              Feb 11 07:39:11 UTC 2010 i686 i686
Alert Count                   3
First Seen                    Fri 19 Feb 2010 01:13:32 PM PST
Last Seen                     Fri 19 Feb 2010 01:13:32 PM PST
Local ID                      89c8c5ac-23d5-444a-a659-3c3b1bb85444
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1266614012.294:39): avc:  denied  { connect } for  pid=2168 comm="system-config-f" scontext=system_u:system_r:firewallgui_t:s0-s0:c0.c1023 tcontext=system_u:system_r:firewallgui_t:s0-s0:c0.c1023 tclass=unix_dgram_socket

node=(removed) type=AVC msg=audit(1266614012.294:39): avc:  denied  { write } for  pid=2168 comm="system-config-f" name="log" dev=tmpfs ino=9657 scontext=system_u:system_r:firewallgui_t:s0-s0:c0.c1023 tcontext=system_u:object_r:devlog_t:s0 tclass=sock_file

node=(removed) type=AVC msg=audit(1266614012.294:39): avc:  denied  { sendto } for  pid=2168 comm="system-config-f" path="/dev/log" scontext=system_u:system_r:firewallgui_t:s0-s0:c0.c1023 tcontext=system_u:system_r:syslogd_t:s0 tclass=unix_dgram_socket

node=(removed) type=SYSCALL msg=audit(1266614012.294:39): arch=40000003 syscall=102 success=yes exit=0 a0=3 a1=bfc5276c a2=ca2ff4 a3=ffffffc8 items=0 ppid=1 pid=2168 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="system-config-f" exe="/usr/bin/python" subj=system_u:system_r:firewallgui_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,system-config-f,firewallgui_t,firewallgui_t,unix_dgram_socket,connect
audit2allow suggests:

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

Comment 1 Daniel Walsh 2010-02-20 13:21:42 UTC
*** Bug 566823 has been marked as a duplicate of this bug. ***

Comment 2 Daniel Walsh 2010-02-20 13:21:53 UTC
*** Bug 566826 has been marked as a duplicate of this bug. ***

Comment 3 Daniel Walsh 2010-02-20 13:22:36 UTC
Miroslav add

logging_send_syslog_msg(firewallgui_t)

Comment 4 Miroslav Grepl 2010-02-22 09:49:56 UTC
Fixed in selinux-policy-3.6.32-92.fc12

Comment 5 Fedora Update System 2010-02-23 20:57:46 UTC
selinux-policy-3.6.32-92.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-92.fc12

Comment 6 Fedora Update System 2010-02-26 03:44:37 UTC
selinux-policy-3.6.32-92.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-2953

Comment 7 Fedora Update System 2010-03-04 00:13:14 UTC
selinux-policy-3.6.32-92.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.