id128-util: do not expose product UUID when running in a container
authorLennart Poettering <lennart@poettering.net>
Mon, 8 Jan 2024 15:14:44 +0000 (16:14 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 9 Jan 2024 09:46:01 +0000 (10:46 +0100)
commit5ee5b1659aad07a6b718de2868124d490c0dfb73
tree4cd3fe42339fdb92143c6321ce46136b8bf8f670
parent96520e8b0cad693bd1d34ae13ca88718d0b9718c
id128-util: do not expose product UUID when running in a container

When we run in a container we should show our own system's info, not the
hosts hence suppress this info in that case.

This matches the behaviour of most other calls in hostnamed to expose
system properties.
src/libsystemd/sd-id128/id128-util.c