Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 55708 Details for
Bug 88398
sys-devel/gdb: default config, potential security problem?
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
gdb-6.3-gdbinit-stat.patch
gdb-6.3-gdbinit-stat.patch (text/plain), 650 bytes, created by
solar (RETIRED)
on 2005-04-08 13:29:13 UTC
(
hide
)
Description:
gdb-6.3-gdbinit-stat.patch
Filename:
MIME Type:
Creator:
solar (RETIRED)
Created:
2005-04-08 13:29:13 UTC
Size:
650 bytes
patch
obsolete
>--- gdb/main.c.orig 2005-04-08 16:21:43.000000000 -0400 >+++ gdb/main.c 2005-04-08 16:27:13.000000000 -0400 >@@ -30,6 +30,7 @@ > > #include "getopt.h" > >+#include <sys/stat,h> > #include <sys/types.h> > #include "gdb_stat.h" > #include <ctype.h> >@@ -695,7 +696,11 @@ > || memcmp ((char *) &homebuf, (char *) &cwdbuf, sizeof (struct stat))) > if (!inhibit_gdbinit) > { >- catch_command_errors (source_command, gdbinit, 0, RETURN_MASK_ALL); >+ struct stat st; >+ if ((stat(gdbinit, &st)) != (-1)) { >+ if (st.st_uid == getuid()) >+ catch_command_errors (source_command, gdbinit, 0, RETURN_MASK_ALL); >+ } > } > > for (i = 0; i < ncmd; i++)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 88398
:
55708
|
55710
|
55719
|
55721