]> git.ipfire.org Git - thirdparty/util-linux.git/commit
nsenter: Provide an option to join target process's socket net namespace
authorDmitry Safonov <0x7f454c46@gmail.com>
Fri, 13 Sep 2024 22:29:55 +0000 (23:29 +0100)
committerDmitry Safonov <0x7f454c46@gmail.com>
Mon, 23 Sep 2024 21:59:26 +0000 (22:59 +0100)
commit55c7120accab83c5837c2182cd6b4637b0c21c44
treeafa09839d654abd5e652f1d8bb69be68c6324780
parent81ea117e0396274808a77d40bf11af44ea047285
nsenter: Provide an option to join target process's socket net namespace

The network namespace of a socket can be different from the target
process. Previously there were some userspace issues where a
net-namespace was held alive by a socket leak. For this purpose Arista's
linux kernel has a patch to provide socket => netns map by procfs pid/fd
directory links.

Add nsenter option to join the network namespace of a target process'
socket.

Signed-off-by: Dmitry Safonov <0x7f454c46@gmail.com>
configure.ac
include/pidfd-utils.h
sys-utils/nsenter.1.adoc
sys-utils/nsenter.c