Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159319626
D57424.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1023 B
Referenced Files
None
Subscribers
None
D57424.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
Sat, Jun 13, 8:21 PM (3 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33742174
Default Alt Text
D57424.diff (1023 B)
Attached To
Mode
D57424: sockets: plumb SO_PASSRIGHTS into *sockopt(2)
Attached
Detach File
Event Timeline
Log In to Comment