admin backend broken in 1.48.0 (due to switch from abstract sockets to regular unix sockets)
GVFS 1.48.0 switched from abstract sockets to regular unix sockets, which breaks the admin backend.
Part of the problem is that the admin backend doesn't get the right XDG_RUNTIME_DIR
, so it creates the socket in /root/.cache/gvfsd
.
But even after fixing that by handling XDG_RUNTIME_DIR
like DBUS_SESSION_BUS_ADDRESS
, it still doesn't work: The backend will create the socket with root:root 0755
permissions, preventing the user's client from connecting to it.
(In addition, there's also the hazard of the admin backend creating the gvfsd
directory with root:root 0700
permissions and breaking all the other backends.)
Upstream issue: https://bugs.archlinux.org/task/70108
Edited by Andre Klapper