GNOME Bugzilla – Bug 784893
admin backend doesn't work in flatpak
Last modified: 2018-09-21 18:07:50 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.
See the relevant check_permission code in the daemon: https://git.gnome.org/browse/gvfs/tree/daemon/gvfsbackendadmin.c#n79
-- 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.