Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
namespaces.hh File Reference

Go to the source code of this file.

Functions

void nix::saveMountNamespace ()
void nix::restoreMountNamespace ()
void nix::unshareFilesystem ()

Function Documentation

◆ restoreMountNamespace()

void nix::restoreMountNamespace ( )

Restore the mount namespace saved by saveMountNamespace(). Ignored if saveMountNamespace() was never called.

◆ saveMountNamespace()

void nix::saveMountNamespace ( )

Save the current mount namespace. Ignored if called more than once.

◆ unshareFilesystem()

void nix::unshareFilesystem ( )

Cause this thread to not share any FS attributes with the main thread, because this causes setns() in restoreMountNamespace() to fail.