Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107914909
D27012.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
915 B
Referenced Files
None
Subscribers
None
D27012.diff
View Options
Index: head/sys/compat/linux/linux_socket.c
===================================================================
--- head/sys/compat/linux/linux_socket.c
+++ head/sys/compat/linux/linux_socket.c
@@ -222,6 +222,8 @@
return (SO_LINGER);
case LINUX_SO_REUSEPORT:
return (SO_REUSEPORT_LB);
+ case LINUX_SO_PASSCRED:
+ return (LOCAL_CREDS_PERSISTENT);
case LINUX_SO_PEERCRED:
return (LOCAL_PEERCRED);
case LINUX_SO_RCVLOWAT:
@@ -1445,6 +1447,9 @@
case SOL_SOCKET:
name = linux_to_bsd_so_sockopt(args->optname);
switch (name) {
+ case LOCAL_CREDS_PERSISTENT:
+ level = SOL_LOCAL;
+ break;
case SO_RCVTIMEO:
/* FALLTHROUGH */
case SO_SNDTIMEO:
@@ -1522,6 +1527,9 @@
case SOL_SOCKET:
name = linux_to_bsd_so_sockopt(args->optname);
switch (name) {
+ case LOCAL_CREDS_PERSISTENT:
+ level = SOL_LOCAL;
+ break;
case SO_RCVTIMEO:
/* FALLTHROUGH */
case SO_SNDTIMEO:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 20, 8:56 AM (20 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15976149
Default Alt Text
D27012.diff (915 B)
Attached To
Mode
D27012: linux(4): Emulate Linux SOL_SOCKET:SO_PASSCRED
Attached
Detach File
Event Timeline
Log In to Comment