summaryrefslogtreecommitdiff
path: root/test/Makefile.in
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2020-12-17 11:20:55 +0100
committerPhilipp Stephani <phst@google.com>2021-04-10 21:10:16 +0200
commit1060289f51ee1bf269bb45940892eb272d35af97 (patch)
tree5f16989652dc6294245f5dc767bbf51cfd9a7983 /test/Makefile.in
parent2d17e0124e4232db6344b18cec466eb31920e675 (diff)
downloademacs-1060289f51ee1bf269bb45940892eb272d35af97.tar.gz
Add a helper binary to create a basic Secure Computing filter.
The binary uses the 'seccomp' helper library. The library isn't needed to load the generated Secure Computing filter. * configure.ac: Check for 'seccomp' header and library. * lib-src/seccomp-filter.c: New helper binary to generate a generic Secure Computing filter for GNU/Linux. * lib-src/Makefile.in (DONT_INSTALL): Add 'seccomp-filter' helper binary if possible. (all): Add Secure Computing filter file if possible. (seccomp-filter$(EXEEXT)): Compile helper binary. (seccomp-filter.bpf seccomp-filter.pfc): Generate filter files. * test/src/emacs-tests.el (emacs-tests/seccomp/allows-stdout) (emacs-tests/seccomp/forbids-subprocess): New unit tests. * test/Makefile.in (src/emacs-tests.log): Add dependency on the helper binary.
Diffstat (limited to 'test/Makefile.in')
-rw-r--r--test/Makefile.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Makefile.in b/test/Makefile.in
index ba354289e28..91a8ea141c3 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -276,6 +276,8 @@ $(test_module): $(test_module:${SO}=.c) ../src/emacs-module.h
$(srcdir)/../lib/timespec.c $(srcdir)/../lib/gettime.c
endif
+src/emacs-tests.log: ../lib-src/seccomp-filter.c
+
## Check that there is no 'automated' subdirectory, which would
## indicate an incomplete merge from an older version of Emacs where
## the tests were arranged differently.