OpenSSH
[Top] [All Lists]

Re: Permissions on the ssh-agent socket

To: Alexander Wuerstlein <snalwuer@cip.informatik.uni-erlangen.de>
Subject: Re: Permissions on the ssh-agent socket
From: Daniel Kahn Gillmor <dkg-openssh.com@fifthhorseman.net>
Date: Sun, 25 Mar 2007 12:43:10 -0400
Cc: openssh-unix-dev@mindrot.org
Delivered-to: sp-com-lists@consult.net
Delivered-to: openssh-unix-dev-list1@securepoint.com
Delivered-to: openssh-unix-dev-tmda@mindrot.org
Delivered-to: openssh-unix-dev@mindrot.org
In-reply-to: <20070323152934.GA954@cip.informatik.uni-erlangen.de> (Alexander Wuerstlein's message of "Fri, 23 Mar 2007 16:29:34 +0100")
List-archive: <http://lists.mindrot.org/pipermail/openssh-unix-dev>
List-help: <mailto:openssh-unix-dev-request@mindrot.org?subject=help>
List-id: Development of portable OpenSSH <openssh-unix-dev.mindrot.org>
List-post: <mailto:openssh-unix-dev@mindrot.org>
List-subscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=subscribe>
List-unsubscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=unsubscribe>
References: <20070323152934.GA954@cip.informatik.uni-erlangen.de>
Sender: openssh-unix-dev-bounces+openssh-unix-dev-list1=securepoint.com@mindrot.org
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri 2007-03-23 11:29:34 -0400, Alexander Wuerstlein wrote:

> If I start an ssh-agent, it creates a socket (/tmp/ssh-*/agent.*),
> with the socket's and the directory's permissions set to
> 600. However, if I now connect to a remote host with
> agent-forwarding enabled, the resulting socket on the remote host
> gets permissions 755 (the directory still gets 700).
>
> What bothers me is the go+rx part, is there any specific reason to that?
> If not, wouldn't it be better to be paranoid and use 600? 

I seem to recall that many Unices ignore permissions on sockets (i
think linux does *not* ignore them), and usually rely on the parent
directory for access control.

I haven't been able to dig up a good authoritative reference for this,
but here's a URL which implies the above.

http://www.openldap.org/lists/openldap-software/200306/msg00106.html

I think that setting the permissions restrictively would be wise (and
consistent with the initial socket creation), but given the directory
setup, it's not immediately critical.

just my $0.02,

     --dkg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>

iD8DBQFGBqaIiXTlFKVLY2URAi96AJ9yytiefpPhMbj+O7EWEqP3w20gIACePGC5
zKuTT1rMgGegru4j6Z2yE08=
=LF+/
-----END PGP SIGNATURE-----
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

<Prev in Thread] Current Thread [Next in Thread>