Bug 543328 - 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:d37c1b43f70...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-02 06:47 UTC by Jacob Isreal
Modified: 2009-12-31 03:35 UTC (History)
3 users (show)

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


Attachments (Terms of Use)

Description Jacob Isreal 2009-12-02 06:47:28 UTC
Summary:

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

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

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.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385)

Additional Information:

Source Context                unconfined_u:unconfined_r:abrt_helper_t:s0-s0:c0.c
                              1023
Target Context                system_u:object_r:ptmx_t:s0
Target Objects                /dev/ptmx [ chr_file ]
Source                        abrt-pyhook-hel
Source Path                   /usr/bin/abrt-pyhook-helper
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           abrt-addon-python-1.0.0-1.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-46.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   leaks
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31.5-127.fc12.x86_64 #1 SMP Sat Nov 7 21:11:14
                              EST 2009 x86_64 x86_64
Alert Count                   1
First Seen                    Wed 02 Dec 2009 12:40:59 AM CST
Last Seen                     Wed 02 Dec 2009 12:40:59 AM CST
Local ID                      63f2e709-5e8a-4772-8765-6dc122257ef5
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1259736059.69:250): avc:  denied  { read write } for  pid=14543 comm="abrt-pyhook-hel" path="/dev/ptmx" dev=tmpfs ino=2088 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=SYSCALL msg=audit(1259736059.69:250): arch=c000003e syscall=59 success=yes exit=0 a0=497abc0 a1=332f390 a2=7fff190aa120 a3=65726168732f7273 items=0 ppid=14497 pid=14543 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-46.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 };

Comment 1 Daniel Walsh 2009-12-02 14:41:05 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-53.fc12.noarch

Comment 2 Fedora Update System 2009-12-03 20:27:42 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:53 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:32 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.