Function rustix::thread::setns::move_into_link_name_space

source ·
pub fn move_into_link_name_space(
    fd: BorrowedFd<'_>,
    allowed_type: Option<LinkNameSpaceType>,
) -> Result<()>
Expand description

Reassociate the calling thread with the namespace associated with link referred to by fd.

fd must refer to one of the magic links in a /proc/[pid]/ns/ directory, or a bind mount to such a link.

§References