Skip to content

virtiofsd: add net and pid namespace sandboxing

Stefan Hajnoczi qemu-devel virtio-fs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2virtiofsd: move to an empty network namespacecontrib/virtiofsd/passthrough_ll.c+14 -01 reply
2/2virtiofsd: move to a new pid namespacecontrib/virtiofsd/passthrough_ll.c+72 -235 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDr. David Alan Gilbert
1/2R-b
2/2R-b

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/2] virtiofsd: add net and pid namespace sandboxing

These patches are based on gitlab.com/virtio-fs/qemu.git virtio-fs-dev.

virtiofsd is sandboxed so that it does not have access to the system in the event that the process is compromised. At the moment we use seccomp and mount namespaces to restrict the list of allowed syscalls and only give access to the shared directory.

This patch series enhances sandboxing by putting virtiofsd into an empty network and pid namespace. If the process is compromised it will be unable to perform network activity, even to localhost services running on the host. It will also be unable to see other processes running on the system since it runs as pid 1 in a new pid namespace.

These enhancements are inspired by the Crosvm virtio-fs device's jail configuration.

Stefan Hajnoczi (2):
virtiofsd: move to an empty network namespace
virtiofsd: move to a new pid namespace

 contrib/virtiofsd/passthrough_ll.c | 109 +++++++++++++++++++++++------
 1 file changed, 86 insertions(+), 23 deletions(-)
Signature · 1 line
2.21.0