]> git.ipfire.org Git - thirdparty/systemd.git/commit
ssh-generator: filter out bogus vsock addresses 39578/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 Nov 2025 17:39:09 +0000 (18:39 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 6 Nov 2025 09:32:12 +0000 (10:32 +0100)
commit492ae9ec4eb7fdfe090fba2e59175072bfabf2f5
tree61b9f223be97dd528f22646e263655585450d33b
parent3bfdc950f7eae022814121a232ed067d2a8e1701
ssh-generator: filter out bogus vsock addresses

When VirtIO VSOCK device is not present, IOCTL_VM_SOCKETS_GET_LOCAL_CID
returns VMADDR_CID_LOCAL/1, and we issue a hint to connect to vsock%1.
This does not work. Filter out VMADDR_CID_LOCAL and VMADDR_CID_HOST,
those are not real addresses that can be used from the outside.
src/basic/socket-util.c