aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/Makefile.in
diff options
context:
space:
mode:
authorPhilipp Stephani2021-04-11 19:47:36 +0200
committerPhilipp Stephani2021-04-11 21:19:09 +0200
commitc8d542fd593f06b85d4b7b712378a4f84ec4d2b3 (patch)
treec2368357e6a417f4d7441e8eec13ee1ffc71b2d2 /lib-src/Makefile.in
parentcf0701eff0f3b06e0324be07f7810cbaf261f7f3 (diff)
downloademacs-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.in7
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
240all: ${EXE_FILES} ${SCRIPTS} 240all: ${EXE_FILES} ${SCRIPTS}
241 241
242ifeq ($(SECCOMP_FILTER),1) 242ifeq ($(SECCOMP_FILTER),1)
243all: seccomp-filter.bpf 243all: seccomp-filter.bpf seccomp-filter-exec.bpf
244endif 244endif
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
433seccomp-filter.bpf seccomp-filter.pfc: seccomp-filter$(EXEEXT) 433seccomp-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
436endif 437endif
437 438
438## Makefile ends here. 439## Makefile ends here.