AI Summary: This issue proposes migrating bubblewrap from the traditional `mount(2)` API to newer, more robust mount APIs. This change is intended to improve security and simplify the implementation of features like `--[ro-]bind-fd`, which are crucial for sandboxing frameworks like Flatpak, especially in light of recent vulnerabilities. The implementation would involve using syscalls like `open_tree` and `mount_setattr`, with a fallback to the old method for older kernels.
Low-level unprivileged sandboxing tool used by Flatpak and similar projects