[Bug 13486] New: thunar, gvfs, ssh-agent -- gvfs does not use xfce4-session spawned ssh-agent

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 13486] New: thunar, gvfs, ssh-agent -- gvfs does not use xfce4-session spawned ssh-agent

bugzilla-daemon
https://bugzilla.xfce.org/show_bug.cgi?id=13486

            Bug ID: 13486
           Summary: thunar, gvfs, ssh-agent -- gvfs does not use
                    xfce4-session spawned ssh-agent
    Classification: Xfce
           Product: Xfce4-session
           Version: 4.12.0
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: General
          Assignee: [hidden email]
          Reporter: [hidden email]
        QA Contact: [hidden email]
                CC: [hidden email], [hidden email]
  Target Milestone: Xfce 4.12

Created attachment 7071
  --> https://bugzilla.xfce.org/attachment.cgi?id=7071&action=edit
call dbus-update-activation-environment after starting ssh-agent

Allowing xfce4-session to manage starting ssh-agent for me resulted in gvfs
requests not making use of the ssh-agent.

Much of the issue is described in this Arch Linux bug report:
https://bugs.archlinux.org/task/46398

The workaround listed in the bug report does work.  Specifcally:
dbus-update-activation-environment --systemd SSH_AUTH_SOCK
pkill gvfs

From this point on, gvfs request through Thunar successfully make use of the
ssh-agent.

However, I wanted to find a way to have everything working as expected
immediately after login without need to apply a workaround.  The attached patch
appears to do so.  Please consider including it.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Xfce-bugs mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce-bugs
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 13486] thunar, gvfs, ssh-agent -- gvfs does not use xfce4-session spawned ssh-agent

bugzilla-daemon
https://bugzilla.xfce.org/show_bug.cgi?id=13486

haarp <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #1 from haarp <[hidden email]> ---
A workaround:

gdb -batch -ex "attach $(pidof gvfsd)" -ex "call
putenv(\"SSH_AUTH_SOCK=$SSH_AUTH_SOCK\")" -ex "detach"

this injects SSH_AUTH_SOCK into gvfsd's environment.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Xfce-bugs mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce-bugs
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 13486] thunar, gvfs, ssh-agent -- gvfs does not use xfce4-session spawned ssh-agent

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugzilla.xfce.org/show_bug.cgi?id=13486

--- Comment #2 from Jamin Collins <[hidden email]> ---
The above "workaround" will not work on many systems:

https://linux-audit.com/protect-ptrace-processes-kernel-yama-ptrace_scope/

including mine:
$ cat /proc/sys/kernel/yama/ptrace_scope
1

However, the provided patch does fix this problem without requiring the user to
make other modifications.  Please consider including it.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Xfce-bugs mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce-bugs
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 13486] thunar, gvfs, ssh-agent -- gvfs does not use xfce4-session spawned ssh-agent

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugzilla.xfce.org/show_bug.cgi?id=13486

--- Comment #3 from Git Bot <[hidden email]> ---
Eric Koegel referenced this bugreport in commit
2cf63e66c0285aaeee76155f463c85d04da6addc

Export the SSH_AUTH_SOCK when spawning client (Bug #13486)

https://git.xfce.org/xfce/xfce4-session/commit?id=2cf63e66c0285aaeee76155f463c85d04da6addc

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Xfce-bugs mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce-bugs
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 13486] thunar, gvfs, ssh-agent -- gvfs does not use xfce4-session spawned ssh-agent

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugzilla.xfce.org/show_bug.cgi?id=13486

Eric Koegel <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #4 from Eric Koegel <[hidden email]> ---
Thanks for the patch!

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Xfce-bugs mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce-bugs
Loading...