]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: support netns joining also for sockets created by .socket unit
authorLennart Poettering <lennart@poettering.net>
Thu, 7 Mar 2019 15:43:58 +0000 (16:43 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 7 Mar 2019 16:47:29 +0000 (17:47 +0100)
commit7619cb32f05f50011760b0063bc5c6e1041f926c
treeca9115edf16f00f9290f9a2d89fb0b2486fe9628
parenta8d08f39d140afb1cb047c65d7d24388bda82e71
core: support netns joining also for sockets created by .socket unit

Similar to the cgroup magic we nowadays do when listening to sockets, to
assign them the right bpf programs, let's also do the same and join the
specified netns in the child process.

This allows people to listen in sockets in specific namespaces, or join
multiple services and socket units together to live in the same
namespace.
src/core/socket.c