Date: Tue, 08 May 2001 22:11:31 -0700 From: Dima Dorfman <dima@unixfreak.org> To: tlambert2@mindspring.com Cc: hackers@FreeBSD.ORG Subject: Re: Getting peer credentials on a unix domain socket Message-ID: <20010509051132.282DD3E2B@bazooka.unixfreak.org> In-Reply-To: <3AF80870.39A8705B@mindspring.com>; from tlambert2@mindspring.com on "Tue, 08 May 2001 07:53:36 -0700"
next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert <tlambert2@mindspring.com> writes: > I think adding a new system call is _not_ the way to go; there > are perfectly good fcntl() commands, which fail to work under > FreeBSD, but work just fine under Solaris, SunOS, Linux, and > most other UNIX systems (we are back to "struct fileops" being > major suckage here). Are you objecting to specifically making this a system call, or implementing it in general? I.e., is a socket option acceptable? Basically, this thread is about trying to find a mechanism that can be used to meet these two conditions on unix domain sockets: 1. Server can obtain the credentials of the connect() caller. 2. The above can be done without depending on the connect() caller to send any data through the socket. Condition 1 is easy to meet; SCM_CREDS already exists. On the other hand, nobody has found an existing way to meet condition 2. If you can change this (i.e., describe a way to do this for the list), great. Otherwise, I have a patch[1] that implements this as a socket option, and William Baxter has a patch to implement it as a system call. Dima Dorfman dima@unixfreak.org [1] http://www.unixfreak.org/~dima/home/peercred.diff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010509051132.282DD3E2B>