Fix: setuid/setgid daemons should not get sensitive env. var./args
[lttng-tools.git] / src / common / config / config.c
index 86b1be8b5c41c218cc2f6252188410e2ce2a741e..ece7cdb2a0e161339f661cfa1bd8b6cb37fc7138 100644 (file)
@@ -32,6 +32,7 @@
 #include <common/error.h>
 #include <common/macros.h>
 #include <common/utils.h>
+#include <common/compat/getenv.h>
 #include <lttng/lttng-error.h>
 #include <libxml/parser.h>
 #include <libxml/valid.h>
@@ -595,7 +596,7 @@ static
 char *get_session_config_xsd_path()
 {
        char *xsd_path;
-       const char *base_path = getenv(DEFAULT_SESSION_CONFIG_XSD_PATH_ENV);
+       const char *base_path = lttng_secure_getenv(DEFAULT_SESSION_CONFIG_XSD_PATH_ENV);
        size_t base_path_len;
        size_t max_path_len;
 
This page took 0.023992 seconds and 4 git commands to generate.