This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Add $pdir as entry for libthread-db-search-path.
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Doug Evans <dje at google dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 29 Apr 2011 14:36:34 +0200
- Subject: Re: [RFA] Add $pdir as entry for libthread-db-search-path.
- References: <20110429035837.9A1EA24619F@ruffy.mtv.corp.google.com>
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