Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177621023
D57424.1794860547.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1023 B
Referenced Files
None
Subscribers
None
D57424.1794860547.diff
View Options
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -3911,6 +3911,7 @@
case SO_NO_DDP:
case SO_NO_OFFLOAD:
case SO_RERROR:
+stdopt:
error = sooptcopyin(sopt, &optval, sizeof optval,
sizeof optval);
if (error)
@@ -3923,6 +3924,14 @@
SOCK_UNLOCK(so);
break;
+ case SO_PASSRIGHTS:
+ if (so->so_proto->pr_domain->dom_family != AF_LOCAL) {
+ error = EOPNOTSUPP;
+ goto bad;
+ }
+
+ goto stdopt;
+
case SO_SETFIB:
error = so->so_proto->pr_ctloutput(so, sopt);
break;
@@ -4162,11 +4171,20 @@
case SO_NO_DDP:
case SO_NO_OFFLOAD:
case SO_RERROR:
+stdopt:
optval = so->so_options & sopt->sopt_name;
integer:
error = sooptcopyout(sopt, &optval, sizeof optval);
break;
+ case SO_PASSRIGHTS:
+ if (so->so_proto->pr_domain->dom_family != AF_LOCAL) {
+ error = EOPNOTSUPP;
+ goto bad;
+ }
+
+ goto stdopt;
+
case SO_FIB:
SOCK_LOCK(so);
optval = so->so_fibnum;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 16, 8:22 PM (15 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41786880
Default Alt Text
D57424.1794860547.diff (1023 B)
Attached To
Mode
D57424: sockets: plumb SO_PASSRIGHTS into *sockopt(2)
Attached
Detach File
Event Timeline