Bug 558728 - SELinux is preventing /usr/libexec/abrt-hook-python "connect" access.
Summary: SELinux is preventing /usr/libexec/abrt-hook-python "connect" access.
Keywords:
Status: CLOSED ERRATA
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:f50a450c43d...
: 558729 558852 559188 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-26 09:11 UTC by Mircea Sava
Modified: 2010-02-06 10:54 UTC (History)
32 users (show)

Fixed In Version: 3.6.32-78.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-02 01:23:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mircea Sava 2010-01-26 09:11:20 UTC
Summary:

SELinux is preventing /usr/libexec/abrt-hook-python "connect" access.

Detailed Description:

[abrt-hook-pytho has a permissive type (abrt_helper_t). This access was not
denied.]

SELinux denied access requested by abrt-hook-pytho. It is not expected that this
access is required by abrt-hook-pytho 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                unconfined_u:unconfined_r:abrt_helper_t:s0-s0:c0.c
                              1023
Target Context                unconfined_u:unconfined_r:abrt_helper_t:s0-s0:c0.c
                              1023
Target Objects                None [ unix_dgram_socket ]
Source                        abrt-hook-pytho
Source Path                   /usr/libexec/abrt-hook-python
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           abrt-addon-python-1.0.4-1.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.12-174.2.3.fc12.i686.PAE #1 SMP Mon Jan 18
                              20:06:44 UTC 2010 i686 athlon
Alert Count                   4
First Seen                    Tue 26 Jan 2010 09:34:37 AM EET
Last Seen                     Tue 26 Jan 2010 11:05:45 AM EET
Local ID                      06bab89e-22ea-49a5-9c04-539f232488d2
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1264496745.194:36502): avc:  denied  { connect } for  pid=7529 comm="abrt-hook-pytho" scontext=unconfined_u:unconfined_r:abrt_helper_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:abrt_helper_t:s0-s0:c0.c1023 tclass=unix_dgram_socket

node=(removed) type=AVC msg=audit(1264496745.194:36502): avc:  denied  { sendto } for  pid=7529 comm="abrt-hook-pytho" path="/dev/log" scontext=unconfined_u:unconfined_r:abrt_helper_t:s0-s0:c0.c1023 tcontext=system_u:system_r:syslogd_t:s0 tclass=unix_dgram_socket

node=(removed) type=SYSCALL msg=audit(1264496745.194:36502): arch=40000003 syscall=102 success=yes exit=0 a0=3 a1=bfa5940c a2=977ff4 a3=ffffffb8 items=0 ppid=1801 pid=7529 auid=500 uid=500 gid=500 euid=481 suid=481 fsuid=481 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="abrt-hook-pytho" exe="/usr/libexec/abrt-hook-python" subj=unconfined_u:unconfined_r:abrt_helper_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-69.fc12,catchall,abrt-hook-pytho,abrt_helper_t,abrt_helper_t,unix_dgram_socket,connect
audit2allow suggests:

#============= abrt_helper_t ==============
allow abrt_helper_t self:unix_dgram_socket connect;
allow abrt_helper_t syslogd_t:unix_dgram_socket sendto;

Comment 1 Miroslav Grepl 2010-01-26 14:19:56 UTC
You can add these rules for now using

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

Comment 2 Miroslav Grepl 2010-01-26 14:20:37 UTC
*** Bug 558729 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2010-01-26 14:22:17 UTC
Fixed in selinux-policy-3.6.32-78.fc12

Comment 4 Miroslav Grepl 2010-01-27 10:07:13 UTC
*** Bug 558852 has been marked as a duplicate of this bug. ***

Comment 5 Miroslav Grepl 2010-01-27 15:44:34 UTC
*** Bug 559188 has been marked as a duplicate of this bug. ***

Comment 6 Fedora Update System 2010-01-28 09:23:53 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 7 Fedora Update System 2010-01-29 03:29:06 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 8 Elad Alfassa 2010-02-01 14:18:43 UTC
Should be pushed to stable as soon as possible, every few minutes there is a new cc (probably automatic) on bug #558852 (which is a duplicate of this bug).

Comment 9 Daniel Walsh 2010-02-01 14:29:25 UTC
You can add these rules for now using

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

Comment 10 Daniel Walsh 2010-02-01 14:30:31 UTC
elad, the quickest way to move a package out of testing to release, is to get three users to say it is good.  So click the link above and give positive feedback on the package.

Comment 11 Miroslav Grepl 2010-02-01 14:35:14 UTC
Actually this release has already got the request to stable.

Comment 12 Fedora Update System 2010-02-02 01:21:13 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.