From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11097 invoked by alias); 9 May 2012 19:58:46 -0000 Received: (qmail 11035 invoked by uid 22791); 9 May 2012 19:58:44 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_NO X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 09 May 2012 19:58:31 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 313F71C624B; Wed, 9 May 2012 15:58:30 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id jCiXFjP-INfY; Wed, 9 May 2012 15:58:30 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id C200E1C624A; Wed, 9 May 2012 15:58:29 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 23772145616; Wed, 9 May 2012 12:58:22 -0700 (PDT) Date: Wed, 09 May 2012 19:58:00 -0000 From: Joel Brobecker To: Jan Kratochvil Cc: gdb-patches@sourceware.org, Eli Zaretskii Subject: Re: [doc patch] auto-load: Make more set auto-load safe-path references [Re: [patch#3 5/8] set auto-load safe-path] Message-ID: <20120509195822.GJ15555@adacore.com> References: <20120403185058.GE14189@host2.jankratochvil.net> <20120509042129.GA24867@adacore.com> <20120509182555.GA16482@host2.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120509182555.GA16482@host2.jankratochvil.net> User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2012-05/txt/msg00309.txt.bz2 > attached. Thanks! > > And lastly, it would have been nice if, after reading the documentation, > > the user could have had a sense of what policy GDB implements by default. > > For instance, GDB's default policy is to enable auto-loading of all > > files, but only from trusted directories specified via the "auto-load > > safe-path" setting. > > There is already that paragraph (in Node: Auto-loading safe path): > > Setting this variable to `/' disables this security protection, > corresponding GDB configuration option is > `--without-auto-load-safe-path'. This variable is supposed to be set > to the system directories writable by the system superuser only. Users > can add their source directories in init files in their home > directories (*note Home Directory Init File::). See also deprecated > init file in the current directory (*note Init File in the Current > Directory during Startup::). > > Do you find it insufficient? I just find it more logical to have it at the beginning, rather than the end. The way I see it, "set auto-load safe-path" is the first barrier involved in determining whether to auto-load a file or not. But I'm fine either way. I think your patch is already a good improvement as it is. Thanks, Jan. -- Joel