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
@@ -38,7 +38,6 @@
#include "parse-util.h"
#include "path-util.h"
#include "service-util.h"
#include "socket-util.h"
#include "stat-util.h"
#include "string-util.h"
#include "strv.h"
@@ -47,6 +46,7 @@
#include "varlink-io.systemd.service.h"
#include "varlink-util.h"
#include "virt.h"
#include "vsock-util.h"
#define VALID_DEPLOYMENT_CHARS (ALPHANUMERICAL "-.:")