Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Apr 2005 18:42:46 +0200
From:      Antoine Brodin <antoine.brodin@laposte.net>
To:        "Matthew N. Dodd" <mdodd@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/share/man/man4 unix.4 src/sys/sys socket.h un.h unpcb.h src/sys/kern uipc_usrreq.c
Message-ID:  <20050413184246.19212b84.antoine.brodin@laposte.net>
In-Reply-To: <200504130001.j3D01kuD081602@repoman.freebsd.org>
References:  <200504130001.j3D01kuD081602@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
"Matthew N. Dodd" <mdodd@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050413184246.19212b84.antoine.brodin>