vsock-util: allow VMADDR_CID_ANY as local CID if enabled in hwdb

On Hyper-V guests, `VMADDR_CID_ANY` is valid as per implementation in
kernel driver: net/vmw_vsock/hyperv_transport.c.

Fixes https://github.com/systemd/systemd/issues/42496

Follow-up for 83359c4da0
This commit is contained in:
Chitoku
2026-06-13 15:54:50 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent 92e4afc4d3
commit 85afe8e82d
11 changed files with 114 additions and 29 deletions
+1 -1
View File
@@ -5,8 +5,8 @@
#include "errno-util.h"
#include "log.h"
#include "socket-util.h"
#include "ssh-util.h"
#include "vsock-util.h"
int vsock_open_or_warn(int *ret) {
int fd = RET_NERRNO(socket(AF_VSOCK, SOCK_STREAM|SOCK_CLOEXEC, 0));