summaryrefslogtreecommitdiffstats
path: root/python/qemu/machine/machine.py
diff options
context:
space:
mode:
authorDaniel P. Berrangé2021-07-29 14:32:37 +0200
committerDaniel P. Berrangé2022-02-16 19:52:40 +0100
commit5a2f693f07a1e93ada5277b2fb1530b2698be0fa (patch)
tree9f5c4a900665ecc50e45c18bd00d2405c9183a57 /python/qemu/machine/machine.py
parentseccomp: add unit test for seccomp filtering (diff)
downloadqemu-5a2f693f07a1e93ada5277b2fb1530b2698be0fa.tar.gz
qemu-5a2f693f07a1e93ada5277b2fb1530b2698be0fa.tar.xz
qemu-5a2f693f07a1e93ada5277b2fb1530b2698be0fa.zip
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>
Diffstat (limited to 'python/qemu/machine/machine.py')
0 files changed, 0 insertions, 0 deletions