]> git.ipfire.org Git - thirdparty/systemd.git/commit
networkd: add bus property exposing network namepace ID we run in
authorLennart Poettering <lennart@poettering.net>
Wed, 26 May 2021 08:37:18 +0000 (10:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 26 May 2021 08:37:18 +0000 (10:37 +0200)
commitf2ef8b28a5266a0070b0cb8b6375e418a5300975
tree79c93ba2b290792485a7860bd6afb41a459ee070
parentbb635f37064ca2a8f20be26a5762164b7485c1f3
networkd: add bus property exposing network namepace ID we run in

This is useful for clients to determine whether they are running in the
same network namespace as networkd.

Note that access to /proc/$PID/ns/ is restricted and only permitted to
equally privileged programs. This new bus property is primarily a way to
work around this, so that unprivileged clients can determine the
networkd netns, too.
src/network/networkd-manager-bus.c