FreeBSD Bugzilla – Attachment 132183 Details for
Bug 176419
socketpair support for LOCAL_PEERCRED
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.txt
file.txt (text/plain), 1.02 KB, created by
Nicholas Wilson
on 2013-02-25 13:00:00 UTC
(
hide
)
Description:
file.txt
Filename:
MIME Type:
Creator:
Nicholas Wilson
Created:
2013-02-25 13:00:00 UTC
Size:
1.02 KB
patch
obsolete
>--- sys/kern/uipc_syscalls.c.RELEASE-9.1-243808 2013-02-21 >13:37:31.778270145 +0000 >+++ sys/kern/uipc_syscalls.c 2013-02-21 13:45:58.747896673 +0000 >@@ -642,6 +642,19 @@ > error = soconnect2(so2, so1); > if (error) > goto free4; >+ } else if (so1->so_proto->pr_flags & PR_CONNREQUIRED) { >+ struct unpcb *unp, *unp2; >+ unp = sotounpcb(so1); >+ unp2 = sotounpcb(so2); >+ UNP_PCB_LOCK(unp); >+ UNP_PCB_LOCK(unp2); >+ cru2x(td->td_ucred, &unp->unp_peercred); >+ memcpy(&unp2->unp_peercred, &unp->unp_peercred, >+ sizeof(unp2->unp_peercred)); >+ unp->unp_flags |= UNP_HAVEPC; >+ unp2->unp_flags |= UNP_HAVEPC; >+ UNP_PCB_UNLOCK(unp); >+ UNP_PCB_UNLOCK(unp2); > } > finit(fp1, FREAD | FWRITE, DTYPE_SOCKET, fp1->f_data, &socketops); > finit(fp2, FREAD | FWRITE, DTYPE_SOCKET, fp2->f_data, &socketops);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 176419
: 132183