diff options
| author | Philipp Stephani | 2022-07-15 17:56:02 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2022-07-15 17:56:02 +0200 |
| commit | db259d8fd369e6036df782d5fe51723a68220074 (patch) | |
| tree | 7b411f9e7976c7dcbb7dbf1d1a6a4e5d1de0deb6 /lib-src | |
| parent | 6a057155521229ab4621a81180fa238e498d7cf8 (diff) | |
| download | emacs-db259d8fd369e6036df782d5fe51723a68220074.tar.gz emacs-db259d8fd369e6036df782d5fe51723a68220074.zip | |
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@ | |||
| 196 | HAVE_LIBSECCOMP=@HAVE_LIBSECCOMP@ | 196 | HAVE_LIBSECCOMP=@HAVE_LIBSECCOMP@ |
| 197 | LIBSECCOMP_LIBS=@LIBSECCOMP_LIBS@ | 197 | LIBSECCOMP_LIBS=@LIBSECCOMP_LIBS@ |
| 198 | LIBSECCOMP_CFLAGS=@LIBSECCOMP_CFLAGS@ | 198 | LIBSECCOMP_CFLAGS=@LIBSECCOMP_CFLAGS@ |
| 199 | SIZEOF_LONG=@SIZEOF_LONG@ | ||
| 199 | 200 | ||
| 200 | # Currently, we can only generate seccomp filter files for x86-64. | 201 | # Currently, we can only generate seccomp filter files for x86-64. |
| 201 | ifeq ($(HAVE_SECCOMP),yes) | 202 | ifeq ($(HAVE_SECCOMP),yes) |
| 202 | ifeq ($(HAVE_LIBSECCOMP),yes) | 203 | ifeq ($(HAVE_LIBSECCOMP),yes) |
| 203 | ifeq ($(shell uname -m),x86_64) | 204 | ifeq ($(shell uname -m),x86_64) |
| 205 | ifeq ($(SIZEOF_LONG),8) | ||
| 204 | # We require SECCOMP_RET_KILL_PROCESS, which is only available in | 206 | # We require SECCOMP_RET_KILL_PROCESS, which is only available in |
| 205 | # Linux 4.14 and later. | 207 | # Linux 4.14 and later. |
| 206 | ifeq ($(shell { echo 4.14; uname -r | cut -d . -f 1-2; } | \ | 208 | ifeq ($(shell { echo 4.14; uname -r | cut -d . -f 1-2; } | \ |
| @@ -211,6 +213,7 @@ endif | |||
| 211 | endif | 213 | endif |
| 212 | endif | 214 | endif |
| 213 | endif | 215 | endif |
| 216 | endif | ||
| 214 | 217 | ||
| 215 | ifeq ($(SECCOMP_FILTER),1) | 218 | ifeq ($(SECCOMP_FILTER),1) |
| 216 | DONT_INSTALL += seccomp-filter$(EXEEXT) | 219 | DONT_INSTALL += seccomp-filter$(EXEEXT) |