mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-26 10:49:33 +00:00
Merge from origin/emacs-28
db259d8fd3
Build Seccomp filter only if we have a 64-bit userspace (B...
This commit is contained in:
commit
9699eaf8af
@ -4901,6 +4901,10 @@ AC_SUBST([HAVE_LIBSECCOMP])
|
||||
AC_SUBST([LIBSECCOMP_LIBS])
|
||||
AC_SUBST([LIBSECCOMP_CFLAGS])
|
||||
|
||||
AC_CHECK_SIZEOF([long])
|
||||
SIZEOF_LONG="$ac_cv_sizeof_long"
|
||||
AC_SUBST([SIZEOF_LONG])
|
||||
|
||||
OLD_LIBS=$LIBS
|
||||
LIBS="$LIB_PTHREAD $LIB_MATH $LIBS"
|
||||
AC_CHECK_FUNCS([accept4 fchdir gethostname \
|
||||
|
@ -210,11 +210,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; } | \
|
||||
@ -225,6 +227,7 @@ endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(SECCOMP_FILTER),1)
|
||||
DONT_INSTALL += seccomp-filter$(EXEEXT)
|
||||
|
Loading…
Reference in New Issue
Block a user