Bo Chen
3c923f0727
virtio-devices: seccomp: Add seccomp filters for virtio_vsock thread
...
This patch enables the seccomp filters for the virtio_vsock worker
thread.
Partially fixes : #925
Signed-off-by: Bo Chen <chen.bo@intel.com>
2020-09-09 17:04:39 +01:00
Bo Chen
1175fa2bc7
virtio-devices: seccomp: Add seccomp filters for blk_io_uring thread
...
This patch enables the seccomp filters for the block_io_uring worker
thread.
Partially fixes : #925
Signed-off-by: Bo Chen <chen.bo@intel.com>
2020-09-09 17:04:39 +01:00
Michael Zhao
23e5a726ec
virtio-devices: Add seccomp rules for vhost-user backend
...
The missing rules caused failures when guest powered off.
Signed-off-by: Michael Zhao <michael.zhao@arm.com>
2020-08-31 08:19:23 +02:00
Michael Zhao
cd0b8ed8f8
virtio-devices: Allowing SYS_write syscall for virtio-net-ctl thread
...
"debug!" marco is used in virtio-devices/src/epoll_helper.rs. When"-vvv"
and "--log-file" option was specified, the missing "SYS_write" rule
caused a "bad system call" crash.
Signed-off-by: Michael Zhao <michael.zhao@arm.com>
2020-08-19 14:26:07 +02:00
Bo Chen
02d87833f0
virtio-devices: seccomp: Add seccomp filters for vhost_blk thread
...
This patch enables the seccomp filters for the vhost_blk worker thread.
Partially fixes : #925
Signed-off-by: Bo Chen <chen.bo@intel.com>
2020-08-19 08:33:58 +02:00
Bo Chen
4e0ea15075
virtio-devices: seccomp: Add seccomp filter for vhost_net thread
...
This patch enables the seccomp filters for the vhost_net worker thread.
Partially fixes : #925
Signed-off-by: Bo Chen <chen.bo@intel.com>
2020-08-19 08:33:58 +02:00
Bo Chen
896b9a1d4b
virtio-devices: seccomp: Add seccomp filter for vhost_net_ctl thread
...
This patch enables the seccomp filters for the vhost_net_ctl worker thread.
Partially fixes : #925
Signed-off-by: Bo Chen <chen.bo@intel.com>
2020-08-19 08:33:58 +02:00
Bo Chen
02d63149fe
virtio-devices: seccomp: Add seccomp filters for vhost_fs thread
...
This patch enables the seccomp filters for the vhost_fs worker thread.
Partially fixes : #925
Signed-off-by: Bo Chen <chen.bo@intel.com>
2020-08-19 08:33:58 +02:00
Bo Chen
c82ded8afa
virtio-devices: seccomp: Add seccomp filters for balloon thread
...
This patch enables the seccomp filters for the balloon worker thread.
Partially fixes : #925
Signed-off-by: Bo Chen <chen.bo@intel.com>
2020-08-19 08:33:58 +02:00
Bo Chen
c460178723
virtio-devices: seccomp: Add seccomp filters for mem thread
...
This patch enables the seccomp filters for the mem worker thread.
Partially fixes : #925
Signed-off-by: Bo Chen <chen.bo@intel.com>
2020-08-19 08:33:58 +02:00
Bo Chen
aaa02a0d78
virtio-devices: seccomp: Add 'brk' syscall to all worker threads
...
To prevent potential failures, this patch adds 'brk' syscall to all
virtio-devices worker threads.
Signed-off-by: Bo Chen <chen.bo@intel.com>
2020-08-17 21:08:49 +02:00
Bo Chen
c90a71e329
virtio-devices: seccomp: Add 'brk' syscall to the rng thread
...
From the experiments of running integration tests on my local machine,
auditd occationally reported the 'brk' syscall is needed for the
'virtio-rng' worker thread.
Signed-off-by: Bo Chen <chen.bo@intel.com>
2020-08-17 21:08:49 +02:00
Bo Chen
c70ad27247
virtio-devices: Add seccomp filter list for net worker thread
...
This patch adds the seccomp filter list for the virtio_net thread, while
the list was already added for the virtio_net_ctl thread.
Partially fixes : #925
Signed-off-by: Bo Chen <chen.bo@intel.com>
2020-08-17 21:08:49 +02:00
Bo Chen
1bf7817c40
virtio-devices: seccomp: Distinguish viritio-net-ctl from virtio-net
...
The current seccomp filter for virtio-net is actually for the worker
thread 'virtio_net_ctl' (not the actual worker thread
'virtio_net'). This patch introduces changes to distinguish those two
worker threads and seccomp filters.
Signed-off-by: Bo Chen <chen.bo@intel.com>
2020-08-17 21:08:49 +02:00
Bo Chen
4539236690
virtio-devices: seccomp: Add seccomp filters for iommu thread
...
This patch enables the seccomp filters for the iommu worker thread.
Partially fixes : #925
Signed-off-by: Bo Chen <chen.bo@intel.com>
2020-08-17 21:08:49 +02:00
Sebastien Boeuf
fca46fd00e
virtio-devices: net: Add dup syscall to seccomp filters
...
The seccomp filters specific to the virtio-net threads must contain
dup() syscall now that we ported the epoll code to the EpollHelper.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2020-08-12 17:34:02 +02:00
Sebastien Boeuf
e8f0bdb6f2
virtio-devices: console: Add dup syscall to seccomp filters
...
The seccomp filters specific to the virtio-console thread must contain
dup syscall now that we ported the epoll code to the EpollHelper.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2020-08-11 19:17:50 +02:00
Rob Bradford
55c16fecbf
virtio-devices: seccomp: Add missing dup() syscalls
...
The refactoring to use EpollHelper added a requirement on this system
call.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2020-08-05 11:32:31 +02:00
Bo Chen
dc71d2765a
virtio-devices: seccomp: Add seccomp filters for pmem thread
...
This patch enables the seccomp filters for the pmem worker thread.
Partially fixes : #925
Signed-off-by: Bo Chen <chen.bo@intel.com>
2020-08-05 08:13:31 +01:00
Bo Chen
d77977536d
virtio-devices: seccomp: Add seccomp filters for net thread
...
This patch enables the seccomp filters for the net worker thread.
Partially fixes : #925
Signed-off-by: Bo Chen <chen.bo@intel.com>
2020-08-05 08:13:31 +01:00
Bo Chen
276df6b71c
virtio-devices: seccomp: Add seccomp filters for console thread
...
This patch enables the seccomp filters for the console worker thread.
Partially fixes : #925
Signed-off-by: Bo Chen <chen.bo@intel.com>
2020-08-05 08:13:31 +01:00
Bo Chen
a426221167
virtio-devices: seccomp: Add seccomp filters for rng thread
...
This patch enables the seccomp filters for the rng worker thread.
Partially fixes : #925
Signed-off-by: Bo Chen <chen.bo@intel.com>
2020-08-05 08:13:31 +01:00
Bo Chen
704edd544c
virtio-devices: seccomp: Add seccomp_filter module
...
This patch added the seccomp_filter module to the virtio-devices crate
by taking reference code from the vmm crate. This patch also adds
allowed-list for the virtio-block worker thread.
Partially fixes : #925
Signed-off-by: Bo Chen <chen.bo@intel.com>
2020-08-04 11:40:49 +02:00