After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 784893 - admin backend doesn't work in flatpak
admin backend doesn't work in flatpak
Status: RESOLVED OBSOLETE
Product: gvfs
Classification: Core
Component: admin backend
git master
Other Linux
: Normal normal
: ---
Assigned To: Cosimo Cecchi
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2017-07-13 08:47 UTC by Ondrej Holy
Modified: 2018-09-21 18:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ondrej Holy 2017-07-13 08:47:57 UTC
Polkit authorization checks rely on process pid, but it seems that peer credentials can't be obtained from dbus in flatpak probably...

If you try to open admin:/// e.g. in gedit it fails with the following:
GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Unix process subject does not have uid set

and gvfs debug log contains a lot of:
GLib-GIO-CRITICAL **: g_credentials_get_unix_pid: assertion 'G_IS_CREDENTIALS (credentials)' failed

because g_dbus_connection_get_peer_credentials returns NULL in flatpak.
Comment 1 Ondrej Holy 2017-07-20 15:06:51 UTC
See the relevant check_permission code in the daemon:
https://git.gnome.org/browse/gvfs/tree/daemon/gvfsbackendadmin.c#n79
Comment 2 GNOME Infrastructure Team 2018-09-21 18:07:50 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gvfs/issues/305.