Terry Lambert <[EMAIL PROTECTED]> 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
                                        [EMAIL PROTECTED]

[1] http://www.unixfreak.org/~dima/home/peercred.diff

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to