summaryrefslogtreecommitdiff
path: root/src/lib/eeze
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/eeze
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/eeze')
-rw-r--r--src/lib/eeze/eeze_sensor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/eeze/eeze_sensor.c b/src/lib/eeze/eeze_sensor.c
index 30c5d3c8e2..831fb12df2 100644
--- a/src/lib/eeze/eeze_sensor.c
+++ b/src/lib/eeze/eeze_sensor.c
@@ -4,6 +4,7 @@
4 4
5#include <stdio.h> 5#include <stdio.h>
6#include <stdlib.h> 6#include <stdlib.h>
7#include <unistd.h>
7#include <Eina.h> 8#include <Eina.h>
8#include <Ecore.h> 9#include <Ecore.h>
9#include <Eeze_Sensor.h> 10#include <Eeze_Sensor.h>
@@ -81,7 +82,7 @@ eeze_sensor_modules_load(void)
81 * is one of these items. We do load the modules from the builddir if the 82 * is one of these items. We do load the modules from the builddir if the
82 * environment is set. Normal case is to use installed modules from system 83 * environment is set. Normal case is to use installed modules from system
83 */ 84 */
84 if (getenv("EFL_RUN_IN_TREE")) 85 if ((getuid() == getuid()) && (getenv("EFL_RUN_IN_TREE")))
85 { 86 {
86 const char **itr; 87 const char **itr;
87 88