diff options
author | Philipp Stephani <phst@google.com> | 2022-07-15 17:56:02 +0200 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2022-07-15 17:56:02 +0200 |
commit | db259d8fd369e6036df782d5fe51723a68220074 (patch) | |
tree | 7b411f9e7976c7dcbb7dbf1d1a6a4e5d1de0deb6 /lib-src | |
parent | 6a057155521229ab4621a81180fa238e498d7cf8 (diff) | |
download | emacs-db259d8fd369e6036df782d5fe51723a68220074.tar.gz |
Build Seccomp filter only if we have a 64-bit userspace (Bug#56549)
* configure.ac (SIZEOF_LONG): New variable.
* lib-src/Makefile.in (SIZEOF_LONG): New variable; added conditional.
Diffstat (limited to 'lib-src')
-rw-r--r-- | lib-src/Makefile.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index 338ba0d5767..92487edce73 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in @@ -196,11 +196,13 @@ HAVE_SECCOMP=@HAVE_SECCOMP@ HAVE_LIBSECCOMP=@HAVE_LIBSECCOMP@ LIBSECCOMP_LIBS=@LIBSECCOMP_LIBS@ LIBSECCOMP_CFLAGS=@LIBSECCOMP_CFLAGS@ +SIZEOF_LONG=@SIZEOF_LONG@ # Currently, we can only generate seccomp filter files for x86-64. ifeq ($(HAVE_SECCOMP),yes) ifeq ($(HAVE_LIBSECCOMP),yes) ifeq ($(shell uname -m),x86_64) +ifeq ($(SIZEOF_LONG),8) # We require SECCOMP_RET_KILL_PROCESS, which is only available in # Linux 4.14 and later. ifeq ($(shell { echo 4.14; uname -r | cut -d . -f 1-2; } | \ @@ -211,6 +213,7 @@ endif endif endif endif +endif ifeq ($(SECCOMP_FILTER),1) DONT_INSTALL += seccomp-filter$(EXEEXT) |