-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix root filesystem exceptions on Linux (#52)
This fixes an issue with filesystem exceptions on Linux where allowing access to `/` would prevent creating the directory to put the old root with `pivot_root`. Instead, the old root is now mounted on top of the new root, removing the necessity to create a separate directory for it. By immediately unmounting the root, the old root then gets discarded and the new root is accessible.
- Loading branch information
Showing
2 changed files
with
8 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters