mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-10-25 21:39:48 +00:00
5e77e88062
While vhost_net can provide better performance than a userspace virtio device, it also requires a kernel module to function. This also prevents jailing the virtio device, since virtqueue operations (which necessarily touch guest memory) will be running directly in the kernel. Add a userspace virtio net device that can be jailed and works without vhost support in the kernel. BUG=chromium:703920 TEST=networking works Change-Id: I468114b48abd8e30e967ff16329a5dce6a75018f Signed-off-by: Stephen Barber <smbarber@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/604937 Reviewed-by: Dylan Reid <dgreid@chromium.org> Reviewed-by: Zach Reizner <zachr@chromium.org>
19 lines
413 B
Text
19 lines
413 B
Text
close: 1
|
|
exit_group: 1
|
|
futex: 1
|
|
# Disallow mmap with PROT_EXEC set. The syntax here doesn't allow bit
|
|
# negation, thus the manually negated mask constant.
|
|
mmap: arg2 in 0xfffffffb
|
|
mprotect: arg2 in 0xfffffffb
|
|
munmap: 1
|
|
poll: 1
|
|
read: 1
|
|
recvfrom: 1
|
|
sched_getaffinity: 1
|
|
set_robust_list: 1
|
|
sigaltstack: 1
|
|
# Disallow clone's other than new threads.
|
|
# arg0 is flags. Because kernel.
|
|
clone: arg0 & 0x00010000
|
|
write: 1
|