Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org, Eli Zaretskii <eliz@gnu.org>
Subject: Re: [doc patch] auto-load: Make more set auto-load safe-path references [Re: [patch#3 5/8] set auto-load safe-path]
Date: Wed, 09 May 2012 19:58:00 -0000	[thread overview]
Message-ID: <20120509195822.GJ15555@adacore.com> (raw)
In-Reply-To: <20120509182555.GA16482@host2.jankratochvil.net>

> 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


  parent reply	other threads:[~2012-05-09 19:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-03 19:17 [patch#3 5/8] set auto-load safe-path Jan Kratochvil
2012-05-09  4:22 ` Joel Brobecker
2012-05-09  5:29   ` Eli Zaretskii
2012-05-09  5:54   ` Jan Kratochvil
2012-05-09 12:21     ` Joel Brobecker
2012-05-09 18:26   ` [doc patch] auto-load: Make more set auto-load safe-path references [Re: [patch#3 5/8] set auto-load safe-path] Jan Kratochvil
2012-05-09 18:49     ` Eli Zaretskii
2012-05-09 18:58       ` Jan Kratochvil
2012-05-09 19:58     ` Joel Brobecker [this message]
2012-05-11 18:27       ` [commit] " 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=20120509195822.GJ15555@adacore.com \
    --to=brobecker@adacore.com \
    --cc=eliz@gnu.org \
    --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