← Back to team overview

desktop-packages team mailing list archive

[Bug 1271591] Re: upstart job race prevents gnome-keyring from being ssh agent

 

Based on the behavior I've observed, I think it's possible that there
are two bugs in play here, and fixing one has revealed the other one.

I'm running Xubuntu 14.04.

Before this update, starting my terminal from the applications menu
yielded a shell with SSH_AUTH_SOCK correctly pointing at gnome-keyring,
while starting my terminal from a folder in Thunar file manager yielded
a shell with SSH_AUTH_SOCK incorrectly pointing at an ssh-agent
instance. The latter didn't work because I only have my ssh key loaded
into gnome-keyring.

After the update, starting my terminal from the applications menu yields
a shell with SSH_AUTH_SOCK correctly pointing at gnome-keyring, while
starting my terminal from a folder in Thunar file manager yields a shell
with SSH_AUTH_SOCK not set at all.

I haven't read the recently released patch yet, so I don't know what
it's supposed to do, but it sure looks like it got rid of the ssh-agent
instance that I thought I had disabled long ago (great!). That still
leaves the problem of why SSH_AUTH_SOCK isn't propagating into my
terminal when launched from my file manager.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-keyring in Ubuntu.
https://bugs.launchpad.net/bugs/1271591

Title:
  upstart job race prevents gnome-keyring from being ssh agent

Status in “gnome-keyring” package in Ubuntu:
  Fix Released
Status in “gnome-keyring” source package in Trusty:
  Fix Released

Bug description:
  I expect gnome-keyring to be the ssh authentication agent when I am
  logged in to a graphical session.

  Because of what I suspect is a race in upstart jobs, I believe
  SSH_AUTH_SOCK is being overwritten after gnome-keyring starts.

  Perhaps the gnome-session job needs to make sure the ssh-agent job is
  finished?

  [testcase]
  1) Perform desktop login
  2)
  [ "$GNOME_KEYRING_CONTROL/ssh" = "$SSH_AUTH_SOCK" ] && echo Good || Fail

  Expected output: Good

  
  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: gnome-session 3.9.90-0ubuntu5
  ProcVersionSignature: Ubuntu 3.13.0-5.20-generic 3.13.0
  Uname: Linux 3.13.0-5-generic x86_64
  ApportVersion: 2.13.1-0ubuntu1
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Wed Jan 22 10:25:59 2014
  InstallationDate: Installed on 2013-11-26 (56 days ago)
  InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
  PackageArchitecture: all
  SourcePackage: gnome-session
  UpgradeStatus: Upgraded to trusty on 2014-01-17 (4 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/1271591/+subscriptions