X-Git-Url: https://gitweb.michael.orlitzky.com/?p=apply-default-acl.git;a=blobdiff_plain;f=configure.ac;h=130b10c8a0539d1ed2be3c608099b25a60423bfe;hp=dd028ff0a34ba6a95c8dcbee4850947eb4859915;hb=d806ef795948c87e614cb2a4cfb80ec96a07d256;hpb=f20847f2296271a8efab1f5013e3b96259a99dc6 diff --git a/configure.ac b/configure.ac index dd028ff..130b10c 100644 --- a/configure.ac +++ b/configure.ac @@ -21,6 +21,15 @@ AC_TYPE_MODE_T AC_CHECK_HEADERS([ fcntl.h ftw.h getopt.h libgen.h limits.h sys/acl.h ]) AC_CHECK_HEADERS([ sys/libacl.h sys/types.h unistd.h ]) -LT_INIT +# We need openat() with O_NOFOLLOW from POSIX-2008. Without them, we +# can't operate securely; I would rather refuse to be built. +AC_CHECK_FUNC(openat, + [], + AC_MSG_ERROR(missing required openat function)) +AC_CHECK_DECLS([O_NOFOLLOW], + [], + [AC_MSG_ERROR(missing required O_NOFOLLOW flag in fcntl.h)], + [[#include ]]) +LT_INIT AC_OUTPUT