Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame^] | 1 | Exclude all the seccomp files to run during build. |
| 2 | |
| 3 | Upstream-Status: Inappropriate [embedded specific] |
| 4 | There are some files that need to run to generate the appropriate files |
| 5 | we are currently doing this on the target. |
| 6 | Signed-off-by: Armin Kuster <akuster808@gmail.com> |
| 7 | |
| 8 | Index: git/Makefile.in |
| 9 | =================================================================== |
| 10 | --- git.orig/Makefile.in |
| 11 | +++ git/Makefile.in |
| 12 | @@ -34,7 +34,6 @@ MYDIRS = src/lib $(MAN_SRC) $(COMPLETION |
| 13 | MYLIBS = src/libpostexecseccomp/libpostexecseccomp.so src/libtrace/libtrace.so src/libtracelog/libtracelog.so |
| 14 | COMPLETIONS = src/zsh_completion/_firejail src/bash_completion/firejail.bash_completion |
| 15 | MANPAGES = firejail.1 firemon.1 firecfg.1 firejail-profile.5 firejail-login.5 firejail-users.5 jailcheck.1 |
| 16 | -SECCOMP_FILTERS = seccomp seccomp.debug seccomp.32 seccomp.block_secondary seccomp.mdwx seccomp.mdwx.32 |
| 17 | ALL_ITEMS = $(APPS) $(SBOX_APPS) $(SBOX_APPS_NON_DUMPABLE) $(MYLIBS) |
| 18 | |
| 19 | .PHONY: all_items $(ALL_ITEMS) |
| 20 | @@ -52,7 +51,7 @@ $(MANPAGES): src/man |
| 21 | |
| 22 | man: $(MANPAGES) |
| 23 | |
| 24 | -filters: $(SECCOMP_FILTERS) $(SBOX_APPS_NON_DUMPABLE) |
| 25 | +filters: $(SBOX_APPS_NON_DUMPABLE) |
| 26 | seccomp: src/fseccomp/fseccomp src/fsec-optimize/fsec-optimize |
| 27 | src/fseccomp/fseccomp default seccomp |
| 28 | src/fsec-optimize/fsec-optimize seccomp |
| 29 | @@ -81,7 +80,6 @@ clean: |
| 30 | done |
| 31 | $(MAKE) -C test clean |
| 32 | rm -f $(MANPAGES) $(MANPAGES:%=%.gz) firejail*.rpm |
| 33 | - rm -f $(SECCOMP_FILTERS) |
| 34 | rm -f test/utils/index.html* |
| 35 | rm -f test/utils/wget-log |
| 36 | rm -f test/utils/firejail-test-file* |
| 37 | @@ -119,7 +117,7 @@ endif |
| 38 | # libraries and plugins |
| 39 | install -m 0755 -d $(DESTDIR)$(libdir)/firejail |
| 40 | install -m 0755 -t $(DESTDIR)$(libdir)/firejail src/firecfg/firejail-welcome.sh |
| 41 | - install -m 0644 -t $(DESTDIR)$(libdir)/firejail $(MYLIBS) $(SECCOMP_FILTERS) |
| 42 | + install -m 0644 -t $(DESTDIR)$(libdir)/firejail $(MYLIBS) |
| 43 | install -m 0755 -t $(DESTDIR)$(libdir)/firejail $(SBOX_APPS) |
| 44 | install -m 0755 -t $(DESTDIR)$(libdir)/firejail src/profstats/profstats |
| 45 | # plugins w/o read permission (non-dumpable) |