Skip to content

Conversation

dmikushin
Copy link

In #594 I've found that bubblewrap fails due to pivot_root(), when binding folder on an NFS filesystem. It would be a pity to fail the entire bubblewrap due to this problem. So I propose a fallback mode: if pivot_root() fails, we try to continue setup with chroot(). Yes: chroot() yields some limitations, such as disabled unsharing mode and disabled uid/gid mapping. But it is still better than nothing, isn't it?

…ms; it could be replaced by a mount bind and chroot(), additionally unsharing and uid/gid mapping is not available

Signed-off-by: Dmitry Mikushin <[email protected]>
@dmikushin dmikushin force-pushed the falling-back-to-chroot-if-pivot_root-fails branch from 2f373e2 to 348156f Compare September 26, 2024 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant