summaryrefslogtreecommitdiffstats
path: root/scripts/clean-header-guards.pl
diff options
context:
space:
mode:
authorStefan Hajnoczi2020-10-08 10:55:34 +0200
committerDr. David Alan Gilbert2020-10-26 19:35:32 +0100
commit06844584b62a43384642f7243b0fc01c9fff0fc7 (patch)
tree969594181ec3954c7ea04dad346117c077ada794 /scripts/clean-header-guards.pl
parentvirtiofsd: passthrough_ll: set FUSE_LOG_INFO as default log_level (diff)
downloadqemu-06844584b62a43384642f7243b0fc01c9fff0fc7.tar.gz
qemu-06844584b62a43384642f7243b0fc01c9fff0fc7.tar.xz
qemu-06844584b62a43384642f7243b0fc01c9fff0fc7.zip
virtiofsd: add container-friendly -o sandbox=chroot option
virtiofsd cannot run in a container because CAP_SYS_ADMIN is required to create namespaces. Introduce a weaker sandbox mode that is sufficient in container environments because the container runtime already sets up namespaces. Use chroot to restrict path traversal to the shared directory. virtiofsd loses the following: 1. Mount namespace. The process chroots to the shared directory but leaves the mounts in place. Seccomp rejects mount(2)/umount(2) syscalls. 2. Pid namespace. This should be fine because virtiofsd is the only process running in the container. 3. Network namespace. This should be fine because seccomp already rejects the connect(2) syscall, but an additional layer of security is lost. Container runtime-specific network security policies can be used drop network traffic (except for the vhost-user UNIX domain socket). Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Message-Id: <20201008085534.16070-1-stefanha@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'scripts/clean-header-guards.pl')
0 files changed, 0 insertions, 0 deletions