Index: sys/compat/linux/linux_socket.c =================================================================== --- sys/compat/linux/linux_socket.c +++ 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_PASSCRED); case LINUX_SO_PEERCRED: return (LOCAL_PEERCRED); case LINUX_SO_RCVLOWAT: @@ -1428,6 +1430,9 @@ case SOL_SOCKET: name = linux_to_bsd_so_sockopt(args->optname); switch (name) { + case LOCAL_PASSCRED: + level = SOL_LOCAL; + break; case SO_RCVTIMEO: /* FALLTHROUGH */ case SO_SNDTIMEO: @@ -1505,6 +1510,9 @@ case SOL_SOCKET: name = linux_to_bsd_so_sockopt(args->optname); switch (name) { + case LOCAL_PASSCRED: + level = SOL_LOCAL; + break; case SO_RCVTIMEO: /* FALLTHROUGH */ case SO_SNDTIMEO: