]> git.ipfire.org Git - thirdparty/systemd.git/commit
creds: import 'vmm.notify_socket' and use it to set
authorLuca Boccassi <bluca@debian.org>
Tue, 3 Jan 2023 17:11:04 +0000 (18:11 +0100)
committerLuca Boccassi <bluca@debian.org>
Thu, 5 Jan 2023 22:07:16 +0000 (23:07 +0100)
commit4a91ace5bc737d552fa20444d99d1100d9c1f9f7
tree5caac499a8e6559a41a0a9f5a8646cbc11bc2dc7
parent6c94cfcda5387bcec36867c7639c777179d6e7c2
creds: import 'vmm.notify_socket' and use it to set

This is intended to be used with VSOCK, to notify the hypervisor/VMM, eg on the host:

qemu <...> -smbios type=11,value=io.systemd.credential:vmm.notify_socket=vsock:2:1234 -device vhost-vsock-pci,id=vhost-vsock-pci0,guest-cid=42

(vsock:2:1234 -> send to host on vsock port 1234, default is to send to 0 which is
the hypervisor itself)

Also on the host:

$ socat - VSOCK-LISTEN:1234,socktype=5
READY=1
STATUS=Ready.
docs/CREDENTIALS.md
man/systemd.system-credentials.xml
src/core/import-creds.c