]> git.ipfire.org Git - thirdparty/systemd.git/commit
seccomp: rework how the S[UG]ID filter is installed 12202/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 3 Apr 2019 11:11:00 +0000 (13:11 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 3 Apr 2019 11:33:06 +0000 (13:33 +0200)
commitda4dc9a6748797e804b6bc92ad513d509abf581c
treee55ebedc39ebeccb9a39894db2c2da2d6520e6a8
parentdff6c6295b1cb09d6da8ab054e66059e43247ab1
seccomp: rework how the S[UG]ID filter is installed

If we know that a syscall is undefined on the given architecture, don't
even try to add it.

Try to install the filter even if some syscalls fail. Also use a helper
function to make the whole a bit less magic.

This allows the S[UG]ID test to pass on arm64.
src/shared/seccomp-util.c