pub fn move_into_thread_name_spaces( fd: BorrowedFd<'_>, allowed_types: ThreadNameSpaceType, ) -> Result<()>
Atomically move the calling thread into one or more of the same namespaces as the thread referred to by fd.
fd
fd must refer to a thread ID. See: pidfd_open and clone.
pidfd_open
clone