Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Falling back to chroot() if pivot_root() fails #595

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

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?

Signed-off-by: Dmitry Mikushin <dmitry@kernelgen.org>
…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 <dmitry@kernelgen.org>
Signed-off-by: Dmitry Mikushin <dmitry@kernelgen.org>
@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