Skip to content

seccomp: fix hole in blocking forks

Daniel P. Berrangé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5seccomp: allow action to be customized per syscallsoftmmu/qemu-seccomp.c+106 -660 replies
2/5seccomp: add unit test for seccomp filteringMAINTAINERS tests/unit/meson.build tests/unit/test-seccomp.c+275 -00 replies
3/5seccomp: fix blocking of process spawningsoftmmu/qemu-seccomp.c tests/unit/test-seccomp.c+102 -20 replies
4/5seccomp: block use of clone3 syscallsoftmmu/qemu-seccomp.c+4 -00 replies
5/5seccomp: block setns, unshare and execveat syscallssoftmmu/qemu-seccomp.c+5 -00 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchEduardo Otubo
SeriesA-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] seccomp: fix hole in blocking forks

Blocking the 'fork' syscall on Linux is not sufficient to block the 'fork' C library function, because the latter is essentially always implemented using the 'clone' syscall these days.

Blocking 'clone' is difficult as that also blocks pthread creation, so it needs careful filtering.

Daniel P. Berrangé (5):
seccomp: allow action to be customized per syscall
seccomp: add unit test for seccomp filtering
seccomp: fix blocking of process spawning
seccomp: block use of clone3 syscall
seccomp: block setns, unshare and execveat syscalls

 MAINTAINERS               |   1 +
 softmmu/qemu-seccomp.c    | 282 +++++++++++++++++++++++++++++---------
 tests/unit/meson.build    |   4 +
 tests/unit/test-seccomp.c | 269 ++++++++++++++++++++++++++++++++++++
 4 files changed, 490 insertions(+), 66 deletions(-)
 create mode 100644 tests/unit/test-seccomp.c
Signature · 1 line
2.31.1