From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18110 invoked by alias); 29 Apr 2011 12:36:54 -0000 Received: (qmail 18022 invoked by uid 22791); 29 Apr 2011 12:36:52 -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 12:36:38 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3TCabbw030597 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 29 Apr 2011 08:36:37 -0400 Received: from host1.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p3TCaZ23005582 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 29 Apr 2011 08:36:37 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p3TCaZPS023944; Fri, 29 Apr 2011 14:36:35 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p3TCaYpJ023936; Fri, 29 Apr 2011 14:36:34 +0200 Date: Fri, 29 Apr 2011 12:36:00 -0000 From: Jan Kratochvil To: Doug Evans Cc: gdb-patches@sourceware.org Subject: Re: [RFA] Add $pdir as entry for libthread-db-search-path. Message-ID: <20110429123634.GA23843@host1.jankratochvil.net> References: <20110429035837.9A1EA24619F@ruffy.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110429035837.9A1EA24619F@ruffy.mtv.corp.google.com> 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/msg00555.txt.bz2 On Fri, 29 Apr 2011 05:58:37 +0200, Doug Evans wrote: > A better default is to look in the directory of libpthread first - that is > the best default. 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. While it is always insecure to run a foreign binary it should be secure to for example load a foreign binary and its core file. > (2) If the user overrides libthread-db-search-path we want to obey the > user's choice. I agree if the user explicitly wishes so it should be followed. Thanks, Jan