]> git.ipfire.org Git - thirdparty/systemd.git/commit
varlink: add generic GetEnvironment() call to the Varlink "service" interface
authorLennart Poettering <lennart@poettering.net>
Tue, 7 Jan 2025 14:23:28 +0000 (15:23 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 18 Jan 2025 22:24:29 +0000 (23:24 +0100)
commitfef9eb4e6af5c224258959dbdd266eb53bac057f
tree59b47f3aecd23801f501107befa746cfe6e00e35
parent211012f54483cb7aa180a36bf6133fc6d6f9b6ea
varlink: add generic GetEnvironment() call to the Varlink "service" interface

It's just so useful being able to retrieve the current env block from
our services. Add a concept for that. It's really simple, and dumb.

In many ways it's like /proc/$PID/environ, but shows the actual
environ[] array visible to the app, not just some memory that was
originally used for the env block passed in, but might have been rearranged.
src/shared/varlink-io.systemd.service.c
src/shared/varlink-io.systemd.service.h