Bug 541669 - SELinux is preventing /usr/bin/abrt-pyhook-helper "write" access on /var/run/nscd/socket.
Summary: SELinux is preventing /usr/bin/abrt-pyhook-helper "write" access on /var/run/...
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: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:899493bd283...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-26 17:06 UTC by Pau Aliagas
Modified: 2010-08-20 01:47 UTC (History)
8 users (show)

Fixed In Version: selinux-policy-3.6.32-120.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-12-07 22:46:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Pau Aliagas 2009-11-26 17:06:22 UTC
Resum:

SELinux is preventing /usr/bin/abrt-pyhook-helper "write" access on
/var/run/nscd/socket.

Descripció detallada:

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

SELinux denied access requested by abrt-pyhook-hel. It is not expected that this
access is required by abrt-pyhook-hel 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.

Permet l'accés:

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.

Informació addicional:

Context de la font            unconfined_u:unconfined_r:abrt_helper_t:s0-s0:c0.c
                              1023
Context de l'objectiu         system_u:object_r:nscd_var_run_t:s0
Objectes objectius            /var/run/nscd/socket [ sock_file ]
Font                          abrt-pyhook-hel
Camí de la font              /usr/bin/abrt-pyhook-helper
Port                          <Desconegut>
Ordinador                     (removed)
Paquests RPM font             abrt-addon-python-1.0.0-1.fc12
Paquets RPM destí            nscd-2.11-2
RPM de política              selinux-policy-3.6.32-49.fc12
S'ha habilitat el Selinux     True
Tipus de la política         targeted
Mode forçat                  Enforcing
Nom del connector             catchall
Nom de la màquina            (removed)
Plataforma                    Linux (removed) 2.6.31.6-145.fc12.x86_64 #1 SMP
                              Sat Nov 21 15:57:45 EST 2009 x86_64 x86_64
Contador d'alertes            2
Vist per primera vegada       dj 26 nov 2009 17:56:52 CET
Vist per darrera vegada       dj 26 nov 2009 17:56:52 CET
Identificador local           b9a91be1-9056-4a06-948c-110b22422c5e
Número de línies            

Missatges d'auditoria sense p 

node=(removed) type=AVC msg=audit(1259254612.81:40): avc:  denied  { write } for  pid=8488 comm="abrt-pyhook-hel" name="socket" dev=dm-8 ino=278649 scontext=unconfined_u:unconfined_r:abrt_helper_t:s0-s0:c0.c1023 tcontext=system_u:object_r:nscd_var_run_t:s0 tclass=sock_file

node=(removed) type=AVC msg=audit(1259254612.81:40): avc:  denied  { connectto } for  pid=8488 comm="abrt-pyhook-hel" path="/var/run/nscd/socket" scontext=unconfined_u:unconfined_r:abrt_helper_t:s0-s0:c0.c1023 tcontext=system_u:system_r:nscd_t:s0 tclass=unix_stream_socket

node=(removed) type=SYSCALL msg=audit(1259254612.81:40): arch=c000003e syscall=42 success=yes exit=68719476864 a0=3 a1=7fff22434b10 a2=6e a3=400 items=0 ppid=2708 pid=8488 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=474 sgid=474 fsgid=474 tty=(none) ses=1 comm="abrt-pyhook-hel" exe="/usr/bin/abrt-pyhook-helper" subj=unconfined_u:unconfined_r:abrt_helper_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-49.fc12,catchall,abrt-pyhook-hel,abrt_helper_t,nscd_var_run_t,sock_file,write
audit2allow suggests:

#============= abrt_helper_t ==============
allow abrt_helper_t nscd_t:unix_stream_socket connectto;
allow abrt_helper_t nscd_var_run_t:sock_file write;

Comment 1 Daniel Walsh 2009-11-30 16:23:36 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-52.fc12.noarch

Comment 2 Fedora Update System 2009-12-01 16:52:44 UTC
selinux-policy-3.6.32-52.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-52.fc12

Comment 3 Fedora Update System 2009-12-03 04:59:52 UTC
selinux-policy-3.6.32-52.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-2009-12549

Comment 4 Fedora Update System 2009-12-03 20:24:47 UTC
selinux-policy-3.6.32-55.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-55.fc12

Comment 5 Fedora Update System 2009-12-04 23:42:50 UTC
selinux-policy-3.6.32-55.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-2009-12650

Comment 6 Fedora Update System 2009-12-08 07:49:25 UTC
selinux-policy-3.6.32-55.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2010-08-05 13:21:40 UTC
selinux-policy-3.6.32-120.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-120.fc12

Comment 8 Fedora Update System 2010-08-20 01:41:47 UTC
selinux-policy-3.6.32-120.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.