summaryrefslogtreecommitdiff
path: root/src/lib/efreet/efreet_menu.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-01-08 19:46:23 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-01-08 19:46:23 +0900
commitb95ef3801f9719a8f8ff731e25d66a8d1dd417cd (patch)
tree258548da51b18d5fde17915bdc36cba44effcf40 /src/lib/efreet/efreet_menu.c
parent323f293ab538ffc7431f6598736963a834c4f880 (diff)
setuid safeness - ensure if an app that is setuid doesn't do bad things
this makes efl ignore certain env vars for thnigs and entirely removes user modules (that no one ever used) etc. etc. to ensure that *IF* an app is setuid, there isn't a priv escalation path that is easy.
Diffstat (limited to 'src/lib/efreet/efreet_menu.c')
-rw-r--r--src/lib/efreet/efreet_menu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/efreet/efreet_menu.c b/src/lib/efreet/efreet_menu.c
index dd56ad6033..1af99f1b0a 100644
--- a/src/lib/efreet/efreet_menu.c
+++ b/src/lib/efreet/efreet_menu.c
@@ -399,8 +399,9 @@ efreet_menu_init(void)
399 return 0; 399 return 0;
400 } 400 }
401 401
402 efreet_menu_prefix = getenv("XDG_MENU_PREFIX"); 402 if (getuid() == getuid())
403 if (!efreet_menu_prefix) efreet_menu_prefix = ""; 403 efreet_menu_prefix = getenv("XDG_MENU_PREFIX");
404 if (!efreet_menu_prefix) efreet_menu_prefix = "";
404 405
405 efreet_menu_handle_cbs = eina_hash_string_superfast_new(NULL); 406 efreet_menu_handle_cbs = eina_hash_string_superfast_new(NULL);
406 efreet_menu_filter_cbs = eina_hash_string_superfast_new(NULL); 407 efreet_menu_filter_cbs = eina_hash_string_superfast_new(NULL);