On Tue, Dec 26, 2000 at 02:20:46AM +0100, Martin Blapp wrote:
[snip]
> Issues with the code:
> 
> 1.) NETBSD sets in svc_tcp.c some LOCAL_CREDS which we don't have in our
> src/sys/kern/uipc_usrreq.c. They have a FLAG which - if set -
> automatically sends the credentials on AF_UNIX sockets connections
> if we do a recvmsg(). We have to implement this to have rpcbind properly
> working. AF_UNIX socket operations are broken at the moment, but
> with compability-mode 'rpcbind -Li' rpcbind works.

We have something analogous ... look for SCM_CREDS.  It's a shame these
aren't the same on both (Net|Free)BSD.

To narrow it down for you, here are the relevant files in -CURRENT:
   src/sys/kern/uipc_usrreq.c
   src/lib/libc/rpc/clnt_unix.c
   src/lib/libc/rpc/svc_unix.c

keyserv and rpc.yppasswd are example applications that use this
feature.
-- 
Jacques Vidrine / [EMAIL PROTECTED] / [EMAIL PROTECTED] / [EMAIL PROTECTED]


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

Reply via email to