aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorPhilipp Stephani2021-04-11 19:35:39 +0200
committerPhilipp Stephani2021-04-11 20:46:59 +0200
commit9a57897ea1a125782ff332814d3f978c38162cf8 (patch)
tree1b87bc226702f6ac1b6640c0cadb8cf880ff9673 /lib-src
parentea5ea09244b762008bba509d8c58bad5835fb949 (diff)
downloademacs-9a57897ea1a125782ff332814d3f978c38162cf8.tar.gz
emacs-9a57897ea1a125782ff332814d3f978c38162cf8.zip
Don't attempt to generate Seccomp filter file in Linux < 4.14.
Only Linux 4.14 and later contain the required support for SECCOMP_RET_KILL_PROCESS. * lib-src/Makefile.in (SECCOMP_FILTER): Define only if we run at least Linux 4.14.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/Makefile.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in
index b4143b33554..35cfa56d8be 100644
--- a/lib-src/Makefile.in
+++ b/lib-src/Makefile.in
@@ -196,9 +196,15 @@ LIBSECCOMP_CFLAGS=@LIBSECCOMP_CFLAGS@
196# Currently, we can only generate seccomp filter files for x86-64. 196# Currently, we can only generate seccomp filter files for x86-64.
197ifeq ($(HAVE_LIBSECCOMP),yes) 197ifeq ($(HAVE_LIBSECCOMP),yes)
198ifeq ($(shell uname -m),x86_64) 198ifeq ($(shell uname -m),x86_64)
199# We require SECCOMP_RET_KILL_PROCESS, which is only available in
200# Linux 4.14 and later.
201ifeq ($(shell { echo 4.14; uname -r | cut -d . -f 1-2; } | \
202 sort -C -t . -n -k 1,1 -k 2,2 && \
203 echo 1),1)
199SECCOMP_FILTER=1 204SECCOMP_FILTER=1
200endif 205endif
201endif 206endif
207endif
202 208
203ifeq ($(SECCOMP_FILTER),1) 209ifeq ($(SECCOMP_FILTER),1)
204DONT_INSTALL += seccomp-filter$(EXEEXT) 210DONT_INSTALL += seccomp-filter$(EXEEXT)