diff options
author | Simo Sorce <simo@redhat.com> | 2013-11-20 11:58:22 -0500 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2013-11-20 12:03:29 -0500 |
commit | 30ce3354ed3300721ddf8de069b0647b55e718e6 (patch) | |
tree | aecdfbc9cec2f04f10fc2a96c129595bc1b8f68b /proxy/src/client | |
parent | 9824bec3a9fc14a527a4febd60a730f6deee0918 (diff) | |
download | gss-proxy-30ce3354ed3300721ddf8de069b0647b55e718e6.tar.gz gss-proxy-30ce3354ed3300721ddf8de069b0647b55e718e6.tar.xz gss-proxy-30ce3354ed3300721ddf8de069b0647b55e718e6.zip |
Use secure_getenv in client and mechglue modulegetenv
proxymehc.so may be used in setuid binaries so follow best security
practices and use secure_getenv() if available.
Fallback to poorman emulation when secure_getenv() is not available.
Resolves: https://fedorahosted.org/gss-proxy/ticket/110
Diffstat (limited to 'proxy/src/client')
-rw-r--r-- | proxy/src/client/gpm_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy/src/client/gpm_common.c b/proxy/src/client/gpm_common.c index df1f5a1..74296da 100644 --- a/proxy/src/client/gpm_common.c +++ b/proxy/src/client/gpm_common.c @@ -68,7 +68,7 @@ static int get_pipe_name(struct gpm_ctx *gpmctx, char *name) const char *socket; int ret; - socket = getenv("GSSPROXY_SOCKET"); + socket = gp_getenv("GSSPROXY_SOCKET"); if (!socket) { socket = GP_SOCKET_NAME; } |