Function move_into_link_name_space

Source
pub fn move_into_link_name_space(
    fd: BorrowedFd<'_>,
    allowed_type: Option<LinkNameSpaceType>,
) -> Result<()>
Available on crate feature thread only.
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