From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18821 invoked by alias); 29 Apr 2011 17:08:50 -0000 Received: (qmail 18811 invoked by uid 22791); 29 Apr 2011 17:08:49 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 29 Apr 2011 17:08:28 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3TH8Su0012776 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 29 Apr 2011 13:08:28 -0400 Received: from host1.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p3TH8PFX019819 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 29 Apr 2011 13:08:27 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p3TH8PJd006239; Fri, 29 Apr 2011 19:08:25 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p3TH8OqN006226; Fri, 29 Apr 2011 19:08:24 +0200 Date: Fri, 29 Apr 2011 17:08:00 -0000 From: Jan Kratochvil To: Doug Evans Cc: gdb-patches@sourceware.org, Tom Tromey Subject: Re: [RFA] Add $pdir as entry for libthread-db-search-path. Message-ID: <20110429170824.GA6107@host1.jankratochvil.net> References: <20110429035837.9A1EA24619F@ruffy.mtv.corp.google.com> <20110429123634.GA23843@host1.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-04/txt/msg00560.txt.bz2 On Fri, 29 Apr 2011 18:49:09 +0200, Doug Evans wrote: > On Fri, Apr 29, 2011 at 5:36 AM, Jan Kratochvil wrote: > > This is insecure default.  It is something like the FSF GDB insecure .gdbinit > > behavior which many distros (at least Fedora but even others) have to patch. > > Does Fedora turn off the autoloading of python? No. > How do your pretty printers Just Work? > [Or maybe you only autoload if the directory is in $prefix/lib/debug > or some such?] You are right it is a security hole, I have not tracked to Python autoloading much. It should get CVE and security errata assigned as it is the same category of a security breach as was: http://cve.mitre.org/cgi-bin/cvename.cgi?name=2006-4146 > Plus I wonder how easy it would be to build a program that used an > accompanying libpthread that didn't match the system libthread_db - > gdb would then pick the accompanying libthread_db. Or does Fedora not > ever look in the directory of libpthread for its libthread_db? This may be also a security exploit I did not catch. Thanks, Jan