This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] .gdbinit security (revived) [incl doc]


On Tue, 23 Nov 2010 19:26:31 +0100, Keith Seitz wrote:
> +      /* If our group ID matches the file, read it in
> +	 without warning/querying the user.  */
> +#ifdef HAVE_GETGID
> +      if (statbuf.st_gid != getgid ())
> +#endif

So currently on `chmod 666 .gdbinit' it no longer traps...

BTW do people really need this feature?  I always use my alias gdbn to force
-nx to not load any .gdbinit, as I generally do not expect which project which
way changes my GDB behavior.

src/gdb/.gdbinit is the most invasive one, it breaks GDB completely. :-)

Other projects incl. bash could also use such `$PWD/.*rc' reading policies.
They do not.


Thanks,
Jan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]