Closed brazdil closed 3 years ago
Tested on Fedora 33, stock and vanilla kernel. Note that this currently fails without this patch. Probably doesn't make much sense to merge this test before that patch lands in the kernel, and then a kernel version check will be needed here.
Thanks, this looks very good! I have just two comments:
connect
will fail at connect(2)
, etc.).Hey Ondrej, no worries. Extended the test and will swing it by the list.
Megrged via 0a3f86ab841efa0f2bbd048243a801915d6808ba, thanks!
If AF_VSOCK and vsock_loopback are supported by the system, run a test that exchanges a byte of data between a client and a server listening on VMADDR_CID_LOCAL and a random port.
This tests that vsock_socket created with socket() inherits the SID of the current process, and that the vsock_socket returned by accept() inherits the same SID.
SOCK_DGRAM is not tested as it is only supported in the VMCI transport.
Signed-off-by: David Brazdil dbrazdil@google.com