]> git.ipfire.org Git - thirdparty/util-linux.git/commit
unshare: remove get_mnt_ino() check in bind_ns_files_from_child()
authorChris Webb <chris@arachsys.com>
Mon, 15 Dec 2025 18:41:08 +0000 (18:41 +0000)
committerChris Webb <chris@arachsys.com>
Mon, 15 Dec 2025 18:41:08 +0000 (18:41 +0000)
commit35f142d33fbb758da7787f8040258b45f324b35e
tree5f4e90891d043b75307828658dbf536f00ce6f3f
parente0d602bab9354e8225f2b0ca063dd449caa64e1c
unshare: remove get_mnt_ino() check in bind_ns_files_from_child()

get_mnt_ino() was originally introduced in c84f2590 where it was used
in a loop to wait for the parent process to unshare the mount namespace
before binding the namespace in its child.

The parent and child processes are now synchronised with eventfd, so
remove this vestigial check and the now-unused get_mnt_ino() function.
This allows bind_ns_files_from_child() to be used even when the mount
namespace isn't amongst the namespaces being unshared.

Signed-off-by: Chris Webb <chris@arachsys.com>
sys-utils/unshare.c