From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 644 invoked by alias); 24 Nov 2010 21:23:47 -0000 Received: (qmail 632 invoked by uid 22791); 24 Nov 2010 21:23:46 -0000 X-SWARE-Spam-Status: No, hits=-6.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_DB,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; Wed, 24 Nov 2010 21:23:41 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oAOLNd12008827 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 24 Nov 2010 16:23:39 -0500 Received: from host0.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oAOLNYVZ008071 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 24 Nov 2010 16:23:38 -0500 Received: from host0.dyn.jankratochvil.net (localhost.localdomain [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id oAOLNXsf022468; Wed, 24 Nov 2010 22:23:33 +0100 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id oAOLNVXa022467; Wed, 24 Nov 2010 22:23:31 +0100 Date: Wed, 24 Nov 2010 21:23:00 -0000 From: Jan Kratochvil To: Keith Seitz Cc: gdb-patches@sourceware.org Subject: Re: [RFA] .gdbinit security (revived) [incl doc] Message-ID: <20101124212331.GA18195@host0.dyn.jankratochvil.net> References: <4CE702E7.4050504@redhat.com> <83d3q0babs.fsf@gnu.org> <4CEC0757.6000503@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4CEC0757.6000503@redhat.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: 2010-11/txt/msg00412.txt.bz2 On Tue, 23 Nov 2010 19:26:31 +0100, Keith Seitz wrote: > + /* If our group ID matches the file, read it in > + without warning/querying the user. */ > +#ifdef HAVE_GETGID > + if (statbuf.st_gid != getgid ()) > +#endif So currently on `chmod 666 .gdbinit' it no longer traps... BTW do people really need this feature? I always use my alias gdbn to force -nx to not load any .gdbinit, as I generally do not expect which project which way changes my GDB behavior. src/gdb/.gdbinit is the most invasive one, it breaks GDB completely. :-) Other projects incl. bash could also use such `$PWD/.*rc' reading policies. They do not. Thanks, Jan