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/configure.ac | |
parent | 9824bec3a9fc14a527a4febd60a730f6deee0918 (diff) | |
download | gss-proxy-getenv.tar.gz gss-proxy-getenv.tar.xz gss-proxy-getenv.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/configure.ac')
-rw-r--r-- | proxy/configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/proxy/configure.ac b/proxy/configure.ac index b75a1ef..a0cc4ef 100644 --- a/proxy/configure.ac +++ b/proxy/configure.ac @@ -149,6 +149,8 @@ AC_CHECK_LIB(gssrpc, gssrpc_xdrmem_create,, [$GSSAPI_LIBS $GSSRPC_LIBS]) AC_SUBST([GSSRPC_LIBS]) +AC_CHECK_FUNCS([__secure_getenv secure_getenv]) + WITH_INITSCRIPT if test x$initscript = xsystemd; then WITH_SYSTEMD_UNIT_DIR |