View | Details | Raw Unified | Return to bug 2011 | Differences between
and this patch

Collapse All | Expand All

(-)a/configure.ac (-19 lines)
Lines 126-150 AC_CHECK_DECL([SECCOMP_MODE_FILTER], [have_seccomp_filter=1], , [ Link Here
126
	#include <linux/seccomp.h>
126
	#include <linux/seccomp.h>
127
])
127
])
128
fi
128
fi
129
if test "x$have_seccomp_filter" = "x1" ; then
130
AC_MSG_CHECKING([kernel for seccomp_filter support])
131
AC_RUN_IFELSE([AC_LANG_PROGRAM([[
132
		#include <errno.h>
133
		#include <linux/seccomp.h>
134
		#include <stdlib.h>
135
		#include <sys/prctl.h>
136
	]],
137
	[[ errno = 0;
138
	   prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
139
	   exit(errno == EFAULT ? 0 : 1); ]])],
140
	[ AC_MSG_RESULT([yes]) ], [
141
		AC_MSG_RESULT([no])
142
		# Disable seccomp filter as a target
143
		have_seccomp_filter=0
144
	],
145
	[ AC_MSG_RESULT([cross-compiling, assuming yes]) ]
146
)
147
fi
148
129
149
use_stack_protector=1
130
use_stack_protector=1
150
AC_ARG_WITH([stackprotect],
131
AC_ARG_WITH([stackprotect],

Return to bug 2011