shared/seccomp: do not use ifdef guards around textual syscall names
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 18 Aug 2020 14:10:47 +0000 (16:10 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 19 Aug 2020 08:57:18 +0000 (10:57 +0200)
commit6da432fd542af5553742b905a0f87a825a28a399
treecbea3256ef31619abf538d768b27f5523076f9a5
parentf9536e679331c0e637655397e12ad9c37f21d3b0
shared/seccomp: do not use ifdef guards around textual syscall names

It is possible that we will be running with an upgraded libseccomp, in which
case libseccomp might know the syscall name, even if the number is not known at
the time when systemd is being compiled. The guard only serves to break such
upgrades, by requiring that we also recompile systemd.

For s390-specific syscalls, use a define to exclude them, so that that we don't
try to filter them on other arches.

(cherry picked from commit 6cf852e79eb0eced2f77653941f9c75c3bd79386)
src/shared/seccomp-util.c