-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle pivot_root in image and split chroot hooks
Bubblewrap uses pivot_root to provide a clean enviroment for its sandbox. Unfortunately, pivot_root requires that current root mount and its parent mount are not shared mounts, which they are by default when making new mounts. To accomplish that, make the chroot root mount private and then bind mount the chroot on top of itself. This will guarantee that both conditions are satisfied. See containers/bubblewrap#135 for details and the workaround suggested in https://gist.github.com/jlebon/fb6e7c6dcc3ce17d3e2a86f5938ec033. https://phabricator.endlessm.com/T14860
- Loading branch information
1 parent
2887877
commit 809e221
Showing
2 changed files
with
33 additions
and
0 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