cvs commit: src/share/man/man4 unix.4 src/sys/sys socket.h un.h unpcb.h src/sys/kern uipc_usrreq.c

Antoine Brodin antoine.brodin at laposte.net
Wed Apr 13 09:42:50 PDT 2005


"Matthew N. Dodd" <mdodd at FreeBSD.org> wrote:
> mdodd       2005-04-13 00:01:46 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     share/man/man4       unix.4 
>     sys/sys              socket.h un.h unpcb.h 
>     sys/kern             uipc_usrreq.c 
>   Log:
>   Implement unix(4) socket options LOCAL_CREDS and LOCAL_CONNWAIT.
>   
>   - Add unp_addsockcred() (for LOCAL_CREDS).
>   - Add an argument to unp_connect2() to differentiate between
>     PRU_CONNECT and PRU_CONNECT2. (for LOCAL_CONNWAIT)
>   
>   Obtained from:   NetBSD (with some changes)
>   
>   Revision  Changes    Path
>   1.11      +50 -0     src/share/man/man4/unix.4
>   1.152     +105 -15   src/sys/kern/uipc_usrreq.c
>   1.88      +19 -0     src/sys/sys/socket.h
>   1.29      +3 -1      src/sys/sys/un.h
>   1.19      +2 -0      src/sys/sys/unpcb.h

I'm not sure it's safe to sooptcopyout/sooptcopyin while holding the
unp mutex in uipc_ctloutput.  It can fault.

Cheers,

Antoine


More information about the cvs-src mailing list