bubblewrap icon indicating copy to clipboard operation
bubblewrap copied to clipboard

Falling back to chroot() if pivot_root() fails

Open dmikushin opened this issue 2 years ago • 0 comments

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?

dmikushin avatar Sep 12 '23 18:09 dmikushin