This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch#3 5/8] set auto-load safe-path
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: jan dot kratochvil at redhat dot com, gdb-patches at sourceware dot org
- Date: Wed, 09 May 2012 08:27:08 +0300
- Subject: Re: [patch#3 5/8] set auto-load safe-path
- References: <20120403185058.GE14189@host2.jankratochvil.net> <20120509042129.GA24867@adacore.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Tue, 8 May 2012 21:21:29 -0700
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: gdb-patches@sourceware.org, Eli Zaretskii <eliz@gnu.org>
>
> I accept the new behavior, and the security claim, no problem.
> I just think that we can improve on the documentation as follow:
>
> In my opinion, we should definitely mention the "auto-load safe-path"
> setting at the very beginning of the auto-load section, before we start
> talking about the various kinds of files that can be automatically
> loaded. And I also think that it would be beneficial to add a reference
> to the safe-path setting in all "set auto-load ..." commands, to make
> sure that people who quickly search the documentation do not miss the
> important fact that setting "auto-load local-gdbinit" to "on" might not
> be sufficient.
>
> 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.
I would welcome patches ;-)