From: Daniel Jacobowitz <drow@false.org>
To: Mike Frysinger <vapier@gentoo.org>
Cc: gdb-patches@sourceware.org
Subject: Re: dont load .gdbinit if it is world writable
Date: Mon, 05 Mar 2007 01:45:00 -0000 [thread overview]
Message-ID: <20070305014518.GA19865@caradoc.them.org> (raw)
In-Reply-To: <200703041808.04010.vapier@gentoo.org>
On Sun, Mar 04, 2007 at 06:08:02PM -0500, Mike Frysinger wrote:
> attached patch checks to see if the $PWD/.gdbinit file is world writable and
> if so, warn about this and refuse to load it
>
> idea being that since you can execute just about anything in it, you dont want
> random people inserting this in it
>
> of course, the usefulness of this is marginalized if .gdbinit is owned by a
> diff user and they just make it world readable but not world writable ... but
> i dont think a cwdbuf.st_uid == getuid() would be accepted ?
You can find my more thorough patch for this in the archives, from
late May 2006. There was some feedback (to be honest I completely
don't remember what it was) and I never got back to it. I think Red
Hat has a different patch for it in their RPMS, too.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2007-03-05 1:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-04 23:08 Mike Frysinger
2007-03-05 1:45 ` Daniel Jacobowitz [this message]
2007-03-05 2:38 ` Mike Frysinger
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=20070305014518.GA19865@caradoc.them.org \
--to=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=vapier@gentoo.org \
/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