git: 59bd4840df03 - main - linux: implement SO_PASSRIGHTS
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 19 Jun 2026 04:05:13 UTC
The branch main has been updated by kevans:
URL: https://cgit.FreeBSD.org/src/commit/?id=59bd4840df037a6898b4e9d917a530bce113f053
commit 59bd4840df037a6898b4e9d917a530bce113f053
Author: Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2026-06-19 04:03:30 +0000
Commit: Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2026-06-19 04:03:30 +0000
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
---
sys/compat/linux/linux_socket.c | 2 ++
sys/compat/linux/linux_socket.h | 1 +
2 files changed, 3 insertions(+)
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 */