Christopher: thanks.
Upstream patching isn't really applicable here, because the script in
question is distribution-specific session-setup code.
As for demo code, here's a tidbit to get the ball rolling:
if [ -n "$XDG_RUNTIME_DIR" -a -d "$XDG_RUNTIME_DIR" ]; then
SSHAGENTARGS+="-a $XDG_RUNTIME_DIR/ssh-agent.$$"
fi
(added right after the "SSHAGENTARGS=-1" conditional)
A couple advantages of this are
1. Old agent sockets are less likely to stick around, because /run/ is a
tmpfs;
2. Searching for my own ssh-agent socket(s) is easier/safer, because I
don't have to worry about /tmp/ssh-*/ directories that belong to someone
else, or (worse) a hostile attacker.
--
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xorg in Ubuntu.
https://bugs.launchpad.net/bugs/1131383
Title:
Wishlist: $SSH_AUTH_SOCK in $XDG_RUNTIME_DIR
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1131383/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help : https://help.launchpad.net/ListHelp