]> git.ipfire.org Git - thirdparty/systemd.git/commit
ssh-generator: don't do AF_VSOCK stuff if we run in a container
authorLennart Poettering <lennart@poettering.net>
Thu, 29 Feb 2024 17:19:07 +0000 (18:19 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 29 Feb 2024 20:43:12 +0000 (20:43 +0000)
commitd52320337ee377f011782ed51e8d39a33e4f23be
treeb3ff520223b1dbdda6a6f855004a6feafe01f9ba
parentd74d989c25696d4930216bdaf21a58f987d7e6bd
ssh-generator: don't do AF_VSOCK stuff if we run in a container

Tighten our VM check: whether we run in a VM is not enough to do
AF_VSOCK. We also need to check if we are run in a container, because if
we run in a container inside a VM then we should *not* do the AF_VSOCK
stuff, but leave the port free for the VM itself.

As discussed here:

https://github.com/systemd/systemd/pull/31544#issuecomment-1971455401
src/ssh-generator/ssh-generator.c