diff options
author | Brent Cook <busterb@gmail.com> | 2015-04-14 07:55:23 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2015-04-14 07:55:23 -0500 |
commit | 3096ab0e45351b05b1f1df51cedc183ba6ca7763 (patch) | |
tree | 01cb87f1fd541907d481311064bdab5d2cdf3691 /configure.ac | |
parent | fe3f7fc6365bfaac3418a72256b8c11603e80cbf (diff) | |
download | portable-3096ab0e45351b05b1f1df51cedc183ba6ca7763.tar.gz portable-3096ab0e45351b05b1f1df51cedc183ba6ca7763.tar.bz2 portable-3096ab0e45351b05b1f1df51cedc183ba6ca7763.zip |
remove issetuigid wrappers, now that all getenv calls are gone.
From deraadt@ upstream:
Remove all getenv() calls, especially those wrapped by issetugid().
getenv()'s wrapped by issetugid() are safe, but issetugid() is ...
difficult to impliment on many operating systems. By accident, a grand
experiment was run over the last year, where issetugid() returned 1 (the
safe value) on a few operating systems. Noone noticed & complained that
certain environment variables were not working.......
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index 75a1ec2..2cd9814 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -220,7 +220,7 @@ CFLAGS="$save_cflags $AM_CFLAGS" | |||
220 | AM_PROG_AS | 220 | AM_PROG_AS |
221 | 221 | ||
222 | AC_CHECK_FUNCS([arc4random_buf asprintf explicit_bzero funopen getauxval]) | 222 | AC_CHECK_FUNCS([arc4random_buf asprintf explicit_bzero funopen getauxval]) |
223 | AC_CHECK_FUNCS([getentropy issetugid memmem poll reallocarray]) | 223 | AC_CHECK_FUNCS([getentropy memmem poll reallocarray]) |
224 | AC_CHECK_FUNCS([strlcat strlcpy strndup strnlen strsep strtonum]) | 224 | AC_CHECK_FUNCS([strlcat strlcpy strndup strnlen strsep strtonum]) |
225 | AC_CHECK_FUNCS([symlink]) | 225 | AC_CHECK_FUNCS([symlink]) |
226 | AC_CHECK_FUNCS([timingsafe_bcmp timingsafe_memcmp]) | 226 | AC_CHECK_FUNCS([timingsafe_bcmp timingsafe_memcmp]) |
@@ -230,7 +230,6 @@ AM_CONDITIONAL([HAVE_ARC4RANDOM_BUF], [test "x$ac_cv_func_arc4random_buf" = xyes | |||
230 | AM_CONDITIONAL([HAVE_ASPRINTF], [test "x$ac_cv_func_asprintf" = xyes]) | 230 | AM_CONDITIONAL([HAVE_ASPRINTF], [test "x$ac_cv_func_asprintf" = xyes]) |
231 | AM_CONDITIONAL([HAVE_EXPLICIT_BZERO], [test "x$ac_cv_func_explicit_bzero" = xyes]) | 231 | AM_CONDITIONAL([HAVE_EXPLICIT_BZERO], [test "x$ac_cv_func_explicit_bzero" = xyes]) |
232 | AM_CONDITIONAL([HAVE_GETENTROPY], [test "x$ac_cv_func_getentropy" = xyes]) | 232 | AM_CONDITIONAL([HAVE_GETENTROPY], [test "x$ac_cv_func_getentropy" = xyes]) |
233 | AM_CONDITIONAL([HAVE_ISSETUGID], [test "x$ac_cv_func_issetugid" = xyes]) | ||
234 | AM_CONDITIONAL([HAVE_MEMMEM], [test "x$ac_cv_func_memmem" = xyes]) | 233 | AM_CONDITIONAL([HAVE_MEMMEM], [test "x$ac_cv_func_memmem" = xyes]) |
235 | AM_CONDITIONAL([HAVE_POLL], [test "x$ac_cv_func_poll" = xyes]) | 234 | AM_CONDITIONAL([HAVE_POLL], [test "x$ac_cv_func_poll" = xyes]) |
236 | AM_CONDITIONAL([HAVE_REALLOCARRAY], [test "x$ac_cv_func_reallocarray" = xyes]) | 235 | AM_CONDITIONAL([HAVE_REALLOCARRAY], [test "x$ac_cv_func_reallocarray" = xyes]) |
@@ -251,11 +250,6 @@ AM_CONDITIONAL([HAVE_ARC4RANDOM_BUF], | |||
251 | -a "x$HOST_OS" != xnetbsd \ | 250 | -a "x$HOST_OS" != xnetbsd \ |
252 | -a "x$ac_cv_func_arc4random_buf" = xyes]) | 251 | -a "x$ac_cv_func_arc4random_buf" = xyes]) |
253 | 252 | ||
254 | # overrides for issetugid implementations with known issues | ||
255 | AM_CONDITIONAL([HAVE_ISSETUGID], | ||
256 | [test "x$HOST_OS" != xdarwin \ | ||
257 | -a "x$ac_cv_func_issetugid" = xyes]) | ||
258 | |||
259 | AC_CACHE_CHECK([whether va_copy exists], ac_cv_have_va_copy, [ | 253 | AC_CACHE_CHECK([whether va_copy exists], ac_cv_have_va_copy, [ |
260 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[ | 254 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[ |
261 | #include <stdarg.h> | 255 | #include <stdarg.h> |