LOCAL_CREDS are broken ?

Yuri yuri at rawbw.com
Thu Aug 29 21:35:55 UTC 2013


On 08/29/2013 14:31, Alfred Perlstein wrote:
> Looks like SOCK_SEQPACKET doesn't support LOCAL_CREDS because its 
> protosw doesn't contain the entry for:
>         .pr_ctloutput =         &uipc_ctloutput,
>
> Have a look at src/sys/kern/uipc_usrreq.c at around lines 280-332:

But SOCK_DGRAM produces the same result. Sorry, I forgot to mention in 
my OP.
I found this case by troubleshooting the linux code that does 
socketpair(AF_LOCAL, SOCK_DGRAM, 0,...) and later sets the equivalent of 
LOCAL_CREDS and this fails.

Yuri


More information about the freebsd-net mailing list