]> git.ipfire.org Git - thirdparty/systemd.git/commit - man/systemd.exec.xml
seccomp: on s390 the clone() parameters are reversed
authorLennart Poettering <lennart@poettering.net>
Wed, 8 Feb 2017 15:21:11 +0000 (16:21 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 8 Feb 2017 21:21:27 +0000 (22:21 +0100)
commitae9d60ce4eb116eefb7c4102074ae1cc13fd3216
treeba261d6ab1d6128aed129a2e5d597488627b0549
parentb53ede699cdc5233041a22591f18863fb3fe2672
seccomp: on s390 the clone() parameters are reversed

Add a bit of code that tries to get the right parameter order in place
for some of the better known architectures, and skips
restrict_namespaces for other archs.

This also bypasses the test on archs where we don't know the right
order.

In this case I didn't bother with testing the case where no filter is
applied, since that is hopefully just an issue for now, as there's
nothing stopping us from supporting more archs, we just need to know
which order is right.

Fixes: #5241
man/systemd.exec.xml
src/basic/raw-clone.h
src/shared/seccomp-util.c
src/shared/seccomp-util.h
src/test/test-seccomp.c