Skip to content

seccomp: adding blacklist support with command line

Eduardo Otubo qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 7 repliesIn review
  2. v22 of 3 patches 19 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3seccomp: adding blacklist supportinclude/sysemu/seccomp.h qemu-seccomp.c vl.c+77 -145 replies
2/3seccomp: adding command line support for blacklistqemu-options.hx vl.c+21 -41 reply
3/3seccomp: general fixesqemu-seccomp.c vl.c+5 -51 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [Qemu-devel] [PATCHv3 0/3] seccomp: adding blacklist support with command line

v3: The "-netdev tap" option is checked in order to decide if the blacklist is eligible to be installed or not, since it's one the most used features that is known to use the exec() system call. It's an automatic mechanism to avoid Qemu to break when using the blacklist feature.

v2: The blacklist works exactly the opposite as the whitelist. I set the default behaiour to SCMP_ACT_ALLOW and the exceptions to SCMP_ACT_KILL; remembering it inherits the behavior from the previous installed whitelist.

v1: The second whitelist is installed right before the vcpu starts, it contains all the system calls the first one has except for exec() and select(), which are big major syscalls that I could extensively test with virt-test and do not cause any damage to the general execution.

This patch series also contain the command line support for this feature and some minor fixes, all of them described in their own commit messages.

The environment in which the second whitelist is installed seems to need less system calls than the first, so the procedure here will be the same: Keep testing with virt-test and get to the smallest list as possible.

Eduardo Otubo (3):
seccomp: adding blacklist support
seccomp: adding command line support for blacklist
seccomp: general fixes

 include/sysemu/seccomp.h |  6 ++++-
 qemu-options.hx          |  8 +++---
 qemu-seccomp.c           | 66 ++++++++++++++++++++++++++++++++++++++----------
 vl.c                     | 42 +++++++++++++++++++++++++++---
 4 files changed, 101 insertions(+), 21 deletions(-)
Signature · 1 line
1.8.3.1