Bug 543367 - SELinux is preventing /usr/bin/abrt-pyhook-helper access to a leaked /dev/ptmx file descriptor.
Summary: SELinux is preventing /usr/bin/abrt-pyhook-helper access to a leaked /dev/ptm...
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:913baa630e4...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-02 09:34 UTC by Sylvain Réault
Modified: 2009-12-08 07:58 UTC (History)
4 users (show)

Fixed In Version: 3.6.32-55.fc12
Clone Of:
Environment:
Last Closed: 2009-12-07 22:47:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Sylvain Réault 2009-12-02 09:34:45 UTC
Résumé:

SELinux is preventing /usr/bin/abrt-pyhook-helper access to a leaked /dev/ptmx
file descriptor.

Description détaillée:

[abrt-pyhook-hel a un type permissif (abrt_helper_t). Cet accès n'a pas été
refusé.]

SELinux denied access requested by the abrt-pyhook-hel command. It looks like
this is either a leaked descriptor or abrt-pyhook-hel output was redirected to a
file it is not allowed to access. Leaks usually can be ignored since SELinux is
just closing the leak and reporting the error. The application does not use the
descriptor, so it will run properly. If this is a redirection, you will not get
output in the /dev/ptmx. You should generate a bugzilla on selinux-policy, and
it will get routed to the appropriate package. You can safely ignore this avc.

Autoriser 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)

Informations complémentaires:

Contexte source               unconfined_u:unconfined_r:abrt_helper_t:s0-s0:c0.c
                              1023
Contexte cible                system_u:object_r:ptmx_t:s0
Objets du contexte            /dev/ptmx [ chr_file ]
source                        abrt-pyhook-hel
Chemin de la source           /usr/bin/abrt-pyhook-helper
Port                          <Inconnu>
Hôte                         (removed)
Paquetages RPM source         abrt-addon-python-1.0.0-1.fc12
Paquetages RPM cible          
Politique RPM                 selinux-policy-3.6.32-49.fc12
Selinux activé               True
Type de politique             targeted
Mode strict                   Enforcing
Nom du plugin                 leaks
Nom de l'hôte                (removed)
Plateforme                    Linux (removed) 2.6.31.6-145.fc12.x86_64 #1
                              SMP Sat Nov 21 15:57:45 EST 2009 x86_64 x86_64
Compteur d'alertes            2
Première alerte              mer. 02 déc. 2009 10:18:18 CET
Dernière alerte              mer. 02 déc. 2009 10:18:18 CET
ID local                      a4766143-9dab-4199-9486-5d889ba764b2
Numéros des lignes           

Messages d'audit bruts        

node=(removed) type=AVC msg=audit(1259745498.139:802): avc:  denied  { read write } for  pid=1957 comm="abrt-pyhook-hel" path="/dev/ptmx" dev=tmpfs ino=2079 scontext=unconfined_u:unconfined_r:abrt_helper_t:s0-s0:c0.c1023 tcontext=system_u:object_r:ptmx_t:s0 tclass=chr_file

node=(removed) type=AVC msg=audit(1259745498.139:802): avc:  denied  { read write } for  pid=1957 comm="abrt-pyhook-hel" path="socket:[15355]" dev=sockfs ino=15355 scontext=unconfined_u:unconfined_r:abrt_helper_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=unix_stream_socket

node=(removed) type=SYSCALL msg=audit(1259745498.139:802): arch=c000003e syscall=59 success=yes exit=0 a0=5314aa0 a1=5ba70c0 a2=7fff94f99560 a3=65726168732f7273 items=0 ppid=1795 pid=1957 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 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,leaks,abrt-pyhook-hel,abrt_helper_t,ptmx_t,chr_file,read,write
audit2allow suggests:

#============= abrt_helper_t ==============
allow abrt_helper_t ptmx_t:chr_file { read write };
allow abrt_helper_t unconfined_t:unix_stream_socket { read write };

Comment 1 Daniel Walsh 2009-12-02 14:55:20 UTC
Added as dontaudits.

Fixed in selinux-policy-3.6.32-53.fc12.noarch

Comment 2 Fedora Update System 2009-12-03 20:27:46 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 3 Fedora Update System 2009-12-04 23:45:58 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 4 Fedora Update System 2009-12-08 07:52:36 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.


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