|
Bugzilla – Full Text Bug Listing |
| Summary: | ssh-agent not detected in sys.xsession | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 12.3 | Reporter: | Wolfgang Rosenauer <wolfgang> |
| Component: | X.Org | Assignee: | Dr. Werner Fink <werner> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <xorg-maintainer-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | forgotten_B-7XM5iatA, sndirsch |
| Version: | Final | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
Adding (best guess) xdm maintainer to CC wolfi@Hygiea:~> osc maintainer openSUSE:Factory xdm bugowner of X11:XOrg : - maintainer of X11:XOrg : sndirsch, mhopf, eeich, michalsrb Please remove the `-k' option from within the checkproc shell function as this seems to cause the trouble with special programs like ssh-agent. Such programs do have an /proc/<pid>/exec links which is not readable by the user used for that program. removing the -k fixed the issue for me, thanks 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. ;-) (In reply to comment #4) > 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. Ok. Fixed in obs://X11:XOrg/xdm and submitrequested for openSUSE:Factory. Wolfgang, could you take care of the update for openSUSE 12.3? Thanks. This is an autogenerated message for OBS integration: This bug (812783) was mentioned in https://build.opensuse.org/request/show/163690 Maintenance / This is an autogenerated message for OBS integration: This bug (812783) was mentioned in https://build.opensuse.org/request/show/163884 Maintenance / Update released for openSUSE 12.3. Resolved fixed. *** Bug 813278 has been marked as a duplicate of this bug. *** openSUSE-RU-2013:0907-1: An update that has one recommended fix can now be installed. Category: recommended (low) Bug References: 812783 CVE References: Sources used: openSUSE 12.3 (src): xdm-1.1.10-14.6.1 |
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.