summaryrefslogtreecommitdiff
path: root/common/debug.c
diff options
context:
space:
mode:
authorStef Walter <stefw@redhat.com>2014-10-02 08:21:28 +0200
committerStef Walter <stefw@redhat.com>2014-10-02 08:24:44 +0200
commit960cb9a7db1950ad1414f70b0e3ec240542601ac (patch)
tree93ca10157b1119fa72bd56165eb00880a943aecf /common/debug.c
parentc9474683dd3db5ad87227dd3c3734ab31bfc01e9 (diff)
common: Use secure_getenv() implementation when setuid
In anything security sensitive, use secure_getenv() implementation for retrieving environment variables.
Diffstat (limited to 'common/debug.c')
-rw-r--r--common/debug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/debug.c b/common/debug.c
index 1fbdc7f..47933fa 100644
--- a/common/debug.c
+++ b/common/debug.c
@@ -36,6 +36,7 @@
#include "config.h"
+#include "compat.h"
#include "debug.h"
#include <assert.h>
@@ -76,7 +77,7 @@ parse_environ_flags (void)
const char *q;
int i;
- env = getenv ("P11_KIT_STRICT");
+ env = secure_getenv ("P11_KIT_STRICT");
if (env && env[0] != '\0')
debug_strict = true;