Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Doug Evans <dje@google.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] auto-load safe-path reset back by set ""
Date: Mon, 23 Apr 2012 02:38:00 -0000	[thread overview]
Message-ID: <CADPb22RcUE-J1js2PRfFU6WxoDRwUgXEoorYYL5gpwKU0dppSg@mail.gmail.com> (raw)
In-Reply-To: <20120422165128.GA21820@host2.jankratochvil.net>

On Sun, Apr 22, 2012 at 9:51 AM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> Hi,
>
> from off-list discussion with Doug I have realized the current GDB practice
> is that "set var" will reset it to the factory defaults:
>        (gdb) set libthread-db-search-path a
>        (gdb) show libthread-db-search-path
>        The current search path or libthread_db is "a".
>        (gdb) set libthread-db-search-path
>        (gdb) show libthread-db-search-path
>        The current search path or libthread_db is "$sdir:$pdir".
>
> A similar behavior can be seen for the "directory" command.
>
> Doug's complaint was that "set auto-load safe-path" can be never reset back to
> the GDB compilation settings.

A thought occurred to me regarding the default value of auto-load-path
= ${prefix}.
For a typical value of /usr, it doesn't give as much protection as it could.
E.g. /usr/tmp, /usr/local/tmp (or possibly anything in /usr/local).

So I was wondering if we really want security to be on by default,
should the default value be gdb's data-directory (e.g.,
$prefix/share/gdb) + $exec_prefix/lib{,32,64} + ???

Plus, it seems like at least data-directory should be relocatable.
Implementing this might be cumbersome unless data-directory was
represented as something like "$ddir".  Or maybe represent $prefix as
$pdir, etc..  There is precedent.  Whether to apply that here - I'm
just raising the issue, I'm not sure myself.


  parent reply	other threads:[~2012-04-22 21:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-22 16:52 Jan Kratochvil
2012-04-22 21:26 ` Eli Zaretskii
2012-04-23 18:13   ` [doc commit] auto-load: Remove trailing @dots [Re: [patch] auto-load safe-path reset back by set ""] Jan Kratochvil
2012-04-23 18:02     ` [doc commit#2] " Jan Kratochvil
2012-04-23 22:52   ` [patch] auto-load safe-path reset back by set "" Jan Kratochvil
2012-04-24  2:53     ` Eli Zaretskii
2012-04-24  3:25       ` Jan Kratochvil
2012-05-06 15:32         ` [commit] " Jan Kratochvil
2012-04-23  2:38 ` Doug Evans [this message]
2012-04-23  4:53   ` Jan Kratochvil
2012-04-24  0:58   ` [patch] auto-load safe-path default=$ddir/auto-load [Re: [patch] auto-load safe-path reset back by set ""] Jan Kratochvil
2012-05-06 16:20     ` obsolete: " Jan Kratochvil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADPb22RcUE-J1js2PRfFU6WxoDRwUgXEoorYYL5gpwKU0dppSg@mail.gmail.com \
    --to=dje@google.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox