diff options
author | Matthieu Herrb <matthieu@herrb.eu> | 2017-02-28 19:18:25 +0100 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-02-28 13:59:14 -0500 |
commit | d7ac755f0b618eb1259d93c8a16ec6e39a18627c (patch) | |
tree | ec336f7136f9286bbca151c9a5b1cc4860955d7f /configure.ac | |
parent | 1b12249fd6d4d3b566043d556503f3f625b9b4ba (diff) |
Use timingsafe_memcmp() to compare MIT-MAGIC-COOKIES CVE-2017-2624
Provide the function definition for systems that don't have it.
Signed-off-by: Matthieu Herrb <matthieu@herrb.eu>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 4dcf8b5c2..f6a49302f 100644 --- a/configure.ac +++ b/configure.ac @@ -221,7 +221,8 @@ AC_CHECK_FUNCS([backtrace ffs geteuid getuid issetugid getresuid \ mmap posix_fallocate seteuid shmctl64 strncasecmp vasprintf vsnprintf \ walkcontext setitimer poll epoll_create1]) AC_CONFIG_LIBOBJ_DIR([os]) -AC_REPLACE_FUNCS([reallocarray strcasecmp strcasestr strlcat strlcpy strndup]) +AC_REPLACE_FUNCS([reallocarray strcasecmp strcasestr strlcat strlcpy strndup\ + timingsafe_memcmp]) AM_CONDITIONAL(POLL, [test "x$ac_cv_func_poll" = "xyes"]) AC_CHECK_DECLS([program_invocation_short_name], [], [], [[#include <errno.h>]]) |