]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/namespace.c
core: add open_netns_path() helper
authorLennart Poettering <lennart@poettering.net>
Thu, 7 Mar 2019 15:42:04 +0000 (16:42 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 7 Mar 2019 15:55:23 +0000 (16:55 +0100)
commit51af7fb230e0d9eebf3810b46334d475e7536833
tree4532ede752e8d4b58514761054d8832d131ce767
parentda6bc6ed05f04561aff6f995fc457d42d892c049
core: add open_netns_path() helper

The new call allows us to open a netns from the file system, and store
it in a "storage fd pair". It's supposed to work with setup_netns() and
allows pre-population of the netns used with one opened from the file
system.
src/core/namespace.c
src/core/namespace.h