[Bug 812783] New: ssh-agent not detected in sys.xsession
https://bugzilla.novell.com/show_bug.cgi?id=812783 https://bugzilla.novell.com/show_bug.cgi?id=812783#c0 Summary: ssh-agent not detected in sys.xsession Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: X.Org AssignedTo: werner@suse.com ReportedBy: wolfgang@rosenauer.org QAContact: xorg-maintainer-bugs@forge.provo.novell.com Found By: --- Blocker: --- I'm using pam_ssh since ages to authenticate via PAM and also create the ssh-agent with my private keys loaded. With 12.3 that does not work anymore. I always get a new ssh-agent started for my WindowMaker session and my unlocked keys are not known to that one. I've tried to debug that a bit but only was able to follow it into sys.xsession: ----- if test "$usessh" = yes -a -d "$HOME/.ssh" && sshagent=$(type -p ssh-agent) ; then if test -S "$SSH_AUTH_SOCK" ; then logger "xsession: pid $SSH_AGENT_PID" checkproc -p $SSH_AGENT_PID $sshagent error=$? logger "xsession: checkproc return $error" if test -n "$SSH_AGENT_PID" && checkproc -p $SSH_AGENT_PID $sshagent ; then export SSH_AGENT_PID SSH_AUTH_SOCK else rm -f "$SSH_AUTH_SOCK" case "${SSH_AUTH_SOCK%/*}" in /tmp/*) rm -rf "${SSH_AUTH_SOCK%/*}" esac unset SSH_AUTH_SOCK fi ----- checkproc -p $SSH_AGENT_PID $sshagent returns exit code 7 but I've verified with debug output that SSH_AGENT_PID contains a valid and current pid of an "ssh-agent -s" process. Actually executing it with the actual data like wolfi@Hygiea:~> /sbin/checkproc -p 6168 /usr/bin/ssh-agent wolfi@Hygiea:~> echo $? 0 works correctly. Just within sys.xsession it fails for a reason I don't know. I did a "ps ax | grep $SSH_AGENT_PID" in the script and it returned the process "ssh-agent -s" correctly but still checkproc failed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=812783
https://bugzilla.novell.com/show_bug.cgi?id=812783#c1
Wolfgang Rosenauer
https://bugzilla.novell.com/show_bug.cgi?id=812783
https://bugzilla.novell.com/show_bug.cgi?id=812783#c2
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=812783
https://bugzilla.novell.com/show_bug.cgi?id=812783#c3
Wolfgang Rosenauer
https://bugzilla.novell.com/show_bug.cgi?id=812783
https://bugzilla.novell.com/show_bug.cgi?id=812783#c4
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=812783
https://bugzilla.novell.com/show_bug.cgi?id=812783#c5
Wolfgang Rosenauer
Wolfgang, do you believe we need a fix for 12.3 or would a fix in obs://X11:XOrg and for openSUSE:Factory be sufficient? I would take care of the latter. You could help me with the former. ;-)
I would rather like to see an update as well. And I can take care about the branching/submitting for that. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=812783
https://bugzilla.novell.com/show_bug.cgi?id=812783#c6
--- Comment #6 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=812783
https://bugzilla.novell.com/show_bug.cgi?id=812783#c7
--- Comment #7 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=812783
https://bugzilla.novell.com/show_bug.cgi?id=812783#c8
--- Comment #8 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=812783
https://bugzilla.novell.com/show_bug.cgi?id=812783#c9
Benjamin Brunner
https://bugzilla.novell.com/show_bug.cgi?id=812783
https://bugzilla.novell.com/show_bug.cgi?id=812783#c10
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=812783
https://bugzilla.novell.com/show_bug.cgi?id=812783#c11
--- Comment #11 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com