[Bug 2308] New: Forwarded Unix domain sockets not removed on logout

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri Nov 7 17:31:49 EST 2014


https://bugzilla.mindrot.org/show_bug.cgi?id=2308

            Bug ID: 2308
           Summary: Forwarded Unix domain sockets not removed on logout
           Product: Portable OpenSSH
           Version: 6.7p1
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: sshd
          Assignee: unassigned-bugs at mindrot.org
          Reporter: swarren at wwwdotorg.org

I tested out Unix domain socket support in 6.7:

# On Ubuntu 14.04 amd64
wget the source
./configure --prefix=/home/swarren/ssh-test/install --with-pam
--with-kerberos5
make
make install

In one console, ran the newly installed sshd. In another:

./ssh -p 863 -R
/run/user/1000/keyring-wpPOO8/gpg-fwd:/run/user/1000/keyring-wpPOO8/gpg
127.0.0.1

Then within the SSH session, tested access to
/run/user/1000/keyring-wpPOO8/gpg-fwd, and verified it connects to
/run/user/1000/keyring-wpPOO8/gpg on the client. In my case
/run/user/1000/keyring-wpPOO8/gpg was actually the path from
$GPG_AGENT_INFO, although I don't think that matters.

When I disconnect the ssh session, the path
/run/user/1000/keyring-wpPOO8/gpg-fwd is not deleted. lsof doesn't show
any processes with the file open. When I re-execute the same ssh
command above, the domain socket forwarding fails, with the following
showing up in sshd's log:

Nov  6 23:25:12 dart sshd[19120]: error: bind: Address already in use
Nov  6 23:25:12 dart sshd[19120]: error: unix_listener: cannot bind to
path: /run/user/1000/keyring-wpPOO8/gpg-fwd

If I rm the domain socket manually on the server, then forwarding with
that remote name works again, once, until I delete it again, etc.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list