Fix: setuid/setgid daemons should not get sensitive env. var./args
[lttng-tools.git] / src / common / runas.c
index c146f652dfa324ef86c19ca2362c8f7c04ffe25c..471bb22046c3d3bf9f44dbf24c176f089a3e3c2e 100644 (file)
@@ -35,6 +35,7 @@
 #include <common/utils.h>
 #include <common/compat/mman.h>
 #include <common/compat/clone.h>
+#include <common/compat/getenv.h>
 
 #include "runas.h"
 
@@ -88,7 +89,7 @@ int use_clone(void)
 static
 int use_clone(void)
 {
-       return !getenv("LTTNG_DEBUG_NOCLONE");
+       return !lttng_secure_getenv("LTTNG_DEBUG_NOCLONE");
 }
 #endif
 
This page took 0.023035 seconds and 4 git commands to generate.