SIGN IN SIGN UP

Fix SetAndGetBooleanSocketOptions on Linux 6.16+ hosts

Since Linux 6.16 (7d8d93fdde50), SO_PASSCRED is restricted to AF_UNIX,
AF_NETLINK, and AF_BLUETOOTH sockets; getsockopt on inet sockets fails
with EOPNOTSUPP. This surfaces natively on new kernels and through
hostinet passthrough, while netstack keeps the old semantics. Accept
either behavior.

PiperOrigin-RevId: 968655712
S
Shailend Chand committed
547bb02e923b8e3e967dc02613a14e42dbd79b44
Parent: b8c025e
Committed by gVisor bot <gvisor-bot@google.com> on 8/21/2026, 8:26:59 PM