]> git.ipfire.org Git - thirdparty/systemd.git/commit
seccomp: drop per arch conditionalization in filter groups
authorLennart Poettering <lennart@poettering.net>
Fri, 14 Oct 2022 16:02:31 +0000 (18:02 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 14 Oct 2022 22:00:16 +0000 (00:00 +0200)
commitc8428d2d0612176c6db730dee17e9ef92582bb0f
tree71de2fc00f15415c6c0ff1beaf3538a3013353b9
parentb45b4f50081bde0836b42ca400480d2e051531ad
seccomp: drop per arch conditionalization in filter groups

We list plenty of arch-specific syscalls in our filter groups, treat the
s390 syscalls the same.

We handle gracefully anyway if some syscall doesn't exist locally on the
kernel or arch, let's rely on it. This has the benefit that
"systemd-analyze" will comprehensively tell you the syscalls filtered on
any arch for any arch.

And less conditionalization is good anyway.
src/shared/seccomp-util.c