You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: cannot share all of /run with a Flatpak app #5207
That can't work. Flatpak relies on the /run inside the container being a tmpfs under its control so that it can create /run/host, /run/flatpak and potentially others, which it will be unable to do if you change /run to be shared from the host system.
Probably Flatpak should ignore --filesystem=/run, ideally with a warning, the same way it already ignores --filesystem=/usr.
Instead of sharing /run with the host, share individual sockets in /run with the host (and try to do that as minimally as possible, because each socket you share is an extra route through which a malicious or compromised app might escape from the sandbox).
Use it to allow all flatpaks access to /run and some other folders (difficult to tell which because of issue)
Please include the full list of overrides in issue reports, particularly if you suspect the overrides are part of the reason for failure. You can see the overrides with:
flatpak override --show --system
flatpak override --show --system APP
flatpak override --show --user
flatpak override --show --user APP
replacing APP with an app ID like org.gnome.Recipes. The first and third commands show overrides that apply to all apps, the second and fourth commands show overrides that are specific to one app. The first and second show overrides that apply to all users, the third and fourth show overrides that apply to you specifically.
To remove overrides that are causing trouble, either use Flatseal, or you can remove all overrides with:
sudo flatpak override --reset --system
sudo flatpak override --reset --system APP
flatpak override --reset --user
flatpak override --reset --user APP
Similar to the --show commands, the first and third commands remove overrides that apply to all apps, while the second and fourth commands remove overrides that are specific to one app. The first and second remove overrides that apply to all users, the third and fourth remove overrides that apply to you specifically. To remove all overrides, you would potentially need all four of these commands.
Activity
smcv commentedon Dec 9, 2022
That can't work. Flatpak relies on the
/runinside the container being a tmpfs under its control so that it can create/run/host,/run/flatpakand potentially others, which it will be unable to do if you change/runto be shared from the host system.Probably Flatpak should ignore
--filesystem=/run, ideally with a warning, the same way it already ignores--filesystem=/usr.Instead of sharing
/runwith the host, share individual sockets in/runwith the host (and try to do that as minimally as possible, because each socket you share is an extra route through which a malicious or compromised app might escape from the sandbox).[-][Bug]: [/-][+][Bug]: cannot share all of /run with a Flatpak app[/+]smcv commentedon Dec 9, 2022
Please include the full list of overrides in issue reports, particularly if you suspect the overrides are part of the reason for failure. You can see the overrides with:
flatpak override --show --systemflatpak override --show --system APPflatpak override --show --userflatpak override --show --user APPreplacing APP with an app ID like
org.gnome.Recipes. The first and third commands show overrides that apply to all apps, the second and fourth commands show overrides that are specific to one app. The first and second show overrides that apply to all users, the third and fourth show overrides that apply to you specifically.To remove overrides that are causing trouble, either use Flatseal, or you can remove all overrides with:
sudo flatpak override --reset --systemsudo flatpak override --reset --system APPflatpak override --reset --userflatpak override --reset --user APPSimilar to the
--showcommands, the first and third commands remove overrides that apply to all apps, while the second and fourth commands remove overrides that are specific to one app. The first and second remove overrides that apply to all users, the third and fourth remove overrides that apply to you specifically. To remove all overrides, you would potentially need all four of these commands.monroth commentedon Dec 9, 2022
yes, there were /run in overrides, and after I removed them issue resolved
exports: Move error handling up into caller
exports: Don't export parent or ancestor of reserved directories
exports: Assert that recently-excluded paths are excluded
smcv commentedon Dec 12, 2022
#5213 avoids this by refusing to share all of
/runwith the app, with a warning message.exports: Move error handling up into caller
exports: Don't export parent or ancestor of reserved directories
exports: Assert that recently-excluded paths are excluded
exports: Don't export parent or ancestor of reserved directories
exports: Assert that recently-excluded paths are excluded
exports: Move error handling up into caller
12 remaining items
exports: Don't export parent or ancestor of reserved directories
exports: Assert that recently-excluded paths are excluded
exports: Move error handling up into caller
exports: Don't export parent or ancestor of reserved directories
exports: Assert that recently-excluded paths are excluded
exports: Move error handling up into caller
exports: Don't export parent or ancestor of reserved directories
exports: Assert that recently-excluded paths are excluded
exports: Move error handling up into caller
exports: Don't export parent or ancestor of reserved directories
exports: Assert that recently-excluded paths are excluded
exports: Move error handling up into caller
exports: Don't export parent or ancestor of reserved directories
exports: Assert that recently-excluded paths are excluded