Commit graph

16 commits

Author SHA1 Message Date
a1346054
6eafbfdfcc
trim excess whitespace 2021-09-25 19:09:14 +00:00
Reiner Herrmann
22fd89b870
Merge pull request #4024 from kmk3/improve-makefiles
Makefile improvements
2021-03-01 21:05:06 +01:00
Kelvin M. Klann
2465f9248e makefiles: make all, clean and distclean PHONY
Avoid a stat() call for each affected target and also potentially speed
up parallel builds.

From the GNU make manual[1]:

> Phony targets are also useful in conjunction with recursive
> invocations of make (see Recursive Use of make).  In this situation
> the makefile will often contain a variable which lists a number of
> sub-directories to be built.

[...]

> The implicit rule search (see Implicit Rules) is skipped for .PHONY
> targets.  This is why declaring a target as .PHONY is good for
> performance, even if you are not worried about the actual file
> existing.

Commands used to search, replace and cleanup:

    $ find -type f -name '*Makefile.in' -exec sed -i.bak \
      -e 's/^all:/.PHONY: all\nall:/' \
      -e 's/^clean:/.PHONY: clean\nclean:/' \
      -e 's/^distclean:/.PHONY: distclean\ndistclean:/' '{}' +
    $ find -type f -name '*Makefile.in.bak' -exec rm '{}' +

[1]: https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html
2021-03-01 16:07:43 -03:00
rusty-snake
8219286e03 Update shell completions
bash:
 - remove --audit
zsh:
 - add --mkdir + --mkfile
 - remove -audit

and fix typo in 9b56dc8e
2021-03-01 18:15:26 +01:00
Harald Kubota
a37ffc3374 Add first version of zsh completion
Don't have duplicate descriptions and put = signs where they belong to

zsh completion function now dynamically adjusts for options (e.g. no --apparmor option without AppArmor configured)

No EXTRA_CFLAGS for cpp

Found main.c which does the argument processing. Moved some arguments into the correct #ifdef blocks

Profile selection now much better

Not more cpp. Using preproc.awk instead.

Updated bash firejail command completion to add profiles

ignore bash and zsh dynamically created completion scripts

Moved bash/zsh completions out of ALL_ITEMS to fix make install

Cleanup
2021-02-12 21:39:44 +09:00
Topi Miettinen
88eadbf31f seccomp: allow defining separate filters for 32-bit arch
System calls (names and numbers) are not exactly the same for 32 bit
and 64 bit architectures. Let's allow defining separate filters for
32-bit arch using seccomp.32, seccomp.32.drop, seccomp.32.keep. This
is useful for mixed 64/32 bit application environments like Steam and
Wine.

Implement protocol and mdwx filtering also for 32 bit arch. It's still
better to block secondary archs completely if not needed.

Lists of supported system calls are also updated.

Warn if preload libraries would be needed due to trace, tracelog or
postexecseccomp (seccomp.drop=execve etc), because a 32-bit dynamic
linker does not understand the 64 bit preload libraries.

Closes #3267.

Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
2020-03-28 11:24:25 +00:00
Fred Barclay
96c920e166
Remove trailing whitespace from src/ 2017-05-24 14:13:52 -05:00
netblue30
d35ba028bc fix firejail bash completion 2017-04-03 17:24:27 -04:00
netblue30
cdde8872a7 --nowhitelist 2017-03-09 13:51:07 -05:00
netblue30
9dc2987168 bash completion for --hosts-file 2017-01-22 10:36:43 -05:00
netblue30
afe9fe9932 --read-write rework 2016-07-19 13:03:24 -04:00
netblue30
b5cfe9cfad audit feature: bash completion 2016-07-05 10:17:23 -04:00
netblue30
e7d1fd9965 added firecfg utility 2016-03-25 08:47:17 -04:00
netblue30
a039bce14d added webserver.net and nolocal.net network filters 2015-11-20 16:50:29 -05:00
netblue30
482782e229 implemented --whitelist option 2015-09-07 20:14:06 -04:00
netblue30
ea133564a7 moved bash completion files under src 2015-08-18 16:27:57 -04:00