* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: os.c,v 1.38 2001/01/09 21:40:38 bwelling Exp $ */
+/* $Id: os.c,v 1.39 2001/02/24 23:05:09 bwelling Exp $ */
#include <config.h>
#include <stdarg.h>
* If there's no <linux/capability.h>, we don't care about <linux/prctl.h>
*/
#ifndef HAVE_LINUX_CAPABILITY_H
-#undef HAVE_LINUX_PRCTL_H
+#undef HAVE_SYS_PRCTL_H
#endif
/*
* Linux defines:
* (T) HAVE_LINUXTHREADS
* (C) HAVE_LINUX_CAPABILITY_H
- * (P) HAVE_LINUX_PRCTL_H
+ * (P) HAVE_SYS_PRCTL_H
* The possible cases are:
* none: setuid() normally
* T: no setuid()
#include <sys/syscall.h> /* Required for syscall(). */
#include <linux/capability.h> /* Required for _LINUX_CAPABILITY_VERSION. */
-#ifdef HAVE_LINUX_PRCTL_H
+#ifdef HAVE_SYS_PRCTL_H
#include <sys/prctl.h> /* Required for prctl(). */
/*
#define PR_SET_KEEPCAPS 8
#endif
-#endif /* HAVE_LINUX_PRCTL_H */
+#endif /* HAVE_SYS_PRCTL_H */
#ifndef SYS_capset
#define SYS_capset __NR_capset
*/
caps |= (1 << CAP_SYS_CHROOT);
-#if defined(HAVE_LINUX_PRCTL_H) || !defined(HAVE_LINUXTHREADS)
+#if defined(HAVE_SYS_PRCTL_H) || !defined(HAVE_LINUXTHREADS)
/*
* We can setuid() only if either the kernel supports keeping
* capabilities after setuid() (which we don't know until we've
linux_setcaps(caps);
}
-#ifdef HAVE_LINUX_PRCTL_H
+#ifdef HAVE_SYS_PRCTL_H
static void
linux_keepcaps(void) {
/*
void
ns_os_minprivs(void) {
-#ifdef HAVE_LINUX_PRCTL_H
+#ifdef HAVE_SYS_PRCTL_H
linux_keepcaps();
#endif
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: config.h.in,v 1.41 2001/01/18 22:21:24 bwelling Exp $ */
+/* $Id: config.h.in,v 1.42 2001/02/24 23:05:07 bwelling Exp $ */
/***
*** This file is not to be included by any public header files, because
/* Define if you have the <linux/capability.h> header file. */
#undef HAVE_LINUX_CAPABILITY_H
-/* Define if you have the <linux/prctl.h> header file. */
-#undef HAVE_LINUX_PRCTL_H
+/* Define if you have the <sys/prctl.h> header file. */
+#undef HAVE_SYS_PRCTL_H
+
+/* Define if you have the <sys/select.h> header file. */
+#undef HAVE_SYS_SELECT_H
/* Define if you have the <sys/sockio.h> header file. */
#undef HAVE_SYS_SOCKIO_H
esyscmd([sed "s/^/# /" COPYRIGHT])dnl
AC_DIVERT_POP()dnl
-AC_REVISION($Revision: 1.232 $)
+AC_REVISION($Revision: 1.233 $)
AC_INIT(lib/dns/name.c)
AC_PREREQ(2.13)
#
AC_CHECK_FUNC(chroot, AC_DEFINE(HAVE_CHROOT))
AC_CHECK_HEADERS(linux/capability.h)
-AC_CHECK_HEADERS(linux/prctl.h)
+AC_CHECK_HEADERS(sys/prctl.h)
#
# BSD/OS, and perhaps some others, don't define rlim_t.