diff options
| author | Philipp Stephani | 2020-12-17 11:20:55 +0100 |
|---|---|---|
| committer | Philipp Stephani | 2020-12-29 14:37:51 +0100 |
| commit | 202a61d09cddf420ce2f18f86aea741f086022fd (patch) | |
| tree | 567adc566589c3cda9cb3b4e615e575c34f3ec1c /test/Makefile.in | |
| parent | 2334f9bfa3f54a606d1748ab86ee9fd481369d7a (diff) | |
| download | emacs-scratch/seccomp.tar.gz emacs-scratch/seccomp.zip | |
Add a helper binary to create a basic Secure Computing filter.scratch/seccomp
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.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Makefile.in b/test/Makefile.in index b6cf6493e32..670bdd6c3da 100644 --- a/test/Makefile.in +++ b/test/Makefile.in | |||
| @@ -272,6 +272,8 @@ $(test_module): $(test_module:${SO}=.c) ../src/emacs-module.h | |||
| 272 | $(srcdir)/../lib/timespec.c $(srcdir)/../lib/gettime.c | 272 | $(srcdir)/../lib/timespec.c $(srcdir)/../lib/gettime.c |
| 273 | endif | 273 | endif |
| 274 | 274 | ||
| 275 | src/emacs-tests.log: ../lib-src/seccomp-filter.c | ||
| 276 | |||
| 275 | ## Check that there is no 'automated' subdirectory, which would | 277 | ## Check that there is no 'automated' subdirectory, which would |
| 276 | ## indicate an incomplete merge from an older version of Emacs where | 278 | ## indicate an incomplete merge from an older version of Emacs where |
| 277 | ## the tests were arranged differently. | 279 | ## the tests were arranged differently. |