aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2006-02-06 03:11:34 +0000
committerGuy Harris <guy@alum.mit.edu>2006-02-06 03:11:34 +0000
commit4c4f18eb3f756a95f550650d689b7854308695ae (patch)
tree7ef8d7904d3b4c12c104e534a354fe4ef109067e /gtk
parent41a8855e1b67bb3909f8e86a466af397204334ad (diff)
Add code to check whether the app was started with special privileges
(e.g., set-UID or set-GID), and don't load user plugs if it is. svn path=/trunk/; revision=17174
Diffstat (limited to 'gtk')
-rw-r--r--gtk/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/main.c b/gtk/main.c
index 758d886b82..b03473c50c 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -54,6 +54,7 @@
#include <epan/epan.h>
#include <epan/filesystem.h>
+#include <epan/privileges.h>
#include <epan/epan_dissect.h>
#include <epan/timestamp.h>
#include <epan/packet.h>
@@ -1912,6 +1913,11 @@ main(int argc, char *argv[])
char optstring[sizeof(OPTSTRING_INIT) + sizeof(OPTSTRING_CHILD) + sizeof(OPTSTRING_WIN32) - 2] =
OPTSTRING_INIT OPTSTRING_WIN32;
+ /*
+ * Get credential information for later use.
+ */
+ get_credential_info();
+
/* initialize memory allocation subsystem */
ep_init_chunk();
se_init_chunk();