diff options
| author | Philipp Stephani | 2021-04-11 19:47:36 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2021-04-11 21:19:09 +0200 |
| commit | c8d542fd593f06b85d4b7b712378a4f84ec4d2b3 (patch) | |
| tree | c2368357e6a417f4d7441e8eec13ee1ffc71b2d2 /lib-src/Makefile.in | |
| parent | cf0701eff0f3b06e0324be07f7810cbaf261f7f3 (diff) | |
| download | emacs-c8d542fd593f06b85d4b7b712378a4f84ec4d2b3.tar.gz emacs-c8d542fd593f06b85d4b7b712378a4f84ec4d2b3.zip | |
Add a variant of the Seccomp filter file that allows 'execve'.
This is useful when starting Emacs with a Seccomp filter enabled,
e.g. using 'bwrap'.
* lib-src/seccomp-filter.c (main): Generate new Seccomp files.
* lib-src/Makefile.in (all)
(seccomp-filter.bpf seccomp-filter.pfc seccomp-filter-exec.bpf
seccomp-filter-exec.pfc): Generate new Seccomp files.
* .gitignore: Ignore new Seccomp files.
* test/src/emacs-tests.el (emacs-tests/bwrap/allows-stdout): New unit
test.
Diffstat (limited to 'lib-src/Makefile.in')
| -rw-r--r-- | lib-src/Makefile.in | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index 35cfa56d8be..091f4fb0199 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in | |||
| @@ -240,7 +240,7 @@ config_h = ../src/config.h $(srcdir)/../src/conf_post.h | |||
| 240 | all: ${EXE_FILES} ${SCRIPTS} | 240 | all: ${EXE_FILES} ${SCRIPTS} |
| 241 | 241 | ||
| 242 | ifeq ($(SECCOMP_FILTER),1) | 242 | ifeq ($(SECCOMP_FILTER),1) |
| 243 | all: seccomp-filter.bpf | 243 | all: seccomp-filter.bpf seccomp-filter-exec.bpf |
| 244 | endif | 244 | endif |
| 245 | 245 | ||
| 246 | .PHONY: all need-blessmail maybe-blessmail | 246 | .PHONY: all need-blessmail maybe-blessmail |
| @@ -430,9 +430,10 @@ seccomp-filter$(EXEEXT): $(srcdir)/seccomp-filter.c $(config_h) | |||
| 430 | $(AM_V_CCLD)$(CC) $(ALL_CFLAGS) $(LIBSECCOMP_CFLAGS) $< \ | 430 | $(AM_V_CCLD)$(CC) $(ALL_CFLAGS) $(LIBSECCOMP_CFLAGS) $< \ |
| 431 | $(LIBSECCOMP_LIBS) -o $@ | 431 | $(LIBSECCOMP_LIBS) -o $@ |
| 432 | 432 | ||
| 433 | seccomp-filter.bpf seccomp-filter.pfc: seccomp-filter$(EXEEXT) | 433 | seccomp-filter.bpf seccomp-filter.pfc seccomp-filter-exec.bpf seccomp-filter-exec.pfc: seccomp-filter$(EXEEXT) |
| 434 | $(AM_V_GEN)./seccomp-filter$(EXEEXT) \ | 434 | $(AM_V_GEN)./seccomp-filter$(EXEEXT) \ |
| 435 | seccomp-filter.bpf seccomp-filter.pfc | 435 | seccomp-filter.bpf seccomp-filter.pfc \ |
| 436 | seccomp-filter-exec.bpf seccomp-filter-exec.pfc | ||
| 436 | endif | 437 | endif |
| 437 | 438 | ||
| 438 | ## Makefile ends here. | 439 | ## Makefile ends here. |