Searched hist:"5 a2f693f07a1e93ada5277b2fb1530b2698be0fa" (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/tests/unit/ |
H A D | test-seccomp.c | diff 5a2f693f07a1e93ada5277b2fb1530b2698be0fa Thu Jul 29 07:32:37 CDT 2021 Daniel P. Berrangé <berrange@redhat.com> seccomp: fix blocking of process spawning
When '-sandbox on,spawn=deny' is given, we are supposed to block the ability to spawn processes. We naively blocked the 'fork' syscall, forgetting that any modern libc will use the 'clone' syscall instead.
We can't simply block the 'clone' syscall though, as that will break thread creation. We thus list the set of flags used to create threads and block anything that doesn't match this exactly.
Acked-by: Eduardo Otubo <otubo@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
|