flatpak / flatpak-xdg-utils

Simple portal-based commandline tools for use inside flatpak sandboxes
GNU Lesser General Public License v2.1
34 stars 14 forks source link

spawn: Print a more explanatory message when bwrap is setuid #54

Closed smcv closed 3 years ago

smcv commented 3 years ago

Before:

[📦 org.gnome.Recipes flatpak-xdg-utils]$ ./_build/src/flatpak-spawn --share-pids true
--share-pids not supported by host portal

After:

[📦 org.gnome.Recipes flatpak-xdg-utils]$ ./_build/src/flatpak-spawn --share-pids true
--share-pids not supported by host portal

This feature requires Flatpak to be using a bubblewrap (bwrap) executable
that is not setuid root.

The non-setuid version of bubblewrap requires a kernel that allows
unprivileged users to create new user namespaces.

For more details please see:
https://github.com/flatpak/flatpak/wiki/User-namespace-requirements