aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2026-06-19 04:03:30 +0000
committerKyle Evans <kevans@FreeBSD.org>2026-06-19 04:03:30 +0000
commit59bd4840df037a6898b4e9d917a530bce113f053 (patch)
treeffdc1701b68a735ae027ce5233b59584d8d100b1
parentc08a86e0c6d989c926c2777c978155dde7d0697a (diff)
linux: implement SO_PASSRIGHTS
We have a native version now, plumb it through to the Linuxolator. Reviewed by: glebius, markj Differential Revision: https://reviews.freebsd.org/D57427
-rw-r--r--sys/compat/linux/linux_socket.c2
-rw-r--r--sys/compat/linux/linux_socket.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
index 7b579958158a..9c94079e0e0f 100644
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -569,6 +569,8 @@ linux_to_bsd_so_sockopt(int opt)
return (SO_PROTOCOL);
case LINUX_SO_DOMAIN:
return (SO_DOMAIN);
+ case LINUX_SO_PASSRIGHTS:
+ return (SO_PASSRIGHTS);
}
return (-1);
}
diff --git a/sys/compat/linux/linux_socket.h b/sys/compat/linux/linux_socket.h
index 47fc140259c5..0428a52ce7ea 100644
--- a/sys/compat/linux/linux_socket.h
+++ b/sys/compat/linux/linux_socket.h
@@ -195,6 +195,7 @@ int linux_accept(struct thread *td, struct linux_accept_args *args);
#define LINUX_SO_PROTOCOL 38
#define LINUX_SO_DOMAIN 39
#define LINUX_SO_PEERGROUPS 59
+#define LINUX_SO_PASSRIGHTS 83
/* Socket-level control message types */