summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libxtables/xtables.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libxtables/xtables.c b/libxtables/xtables.c
index 51706dc4..1e1f4f78 100644
--- a/libxtables/xtables.c
+++ b/libxtables/xtables.c
@@ -31,7 +31,6 @@
#include <netinet/ether.h>
#include <sys/socket.h>
#include <sys/stat.h>
-#include <sys/auxv.h>
#include <sys/statfs.h>
#include <sys/types.h>
#include <sys/utsname.h>
@@ -332,8 +331,8 @@ void xtables_announce_chain(const char *name)
void xtables_init(void)
{
- /* xtables cannot be used with setuid/setcap in a safe way. */
- if (getuid() != geteuid() || getauxval(AT_SECURE))
+ /* xtables cannot be used with setuid in a safe way. */
+ if (getuid() != geteuid())
_exit(111);
xtables_libdir = getenv("XTABLES_LIBDIR");