From 26d87f670b6028bc29c99c963b09476c84ed04f5 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Wed, 20 Oct 2004 02:33:41 +0000 Subject: [PATCH] - PL2525 fix: implement SO_SETXID (reset the context ID of an existing socket). Callable by root context only. To avoid having to register a new sockopt number, #define SO_SETXID to be SO_PASSCRED (which is not usually callable by setsockopt()). --- include/linux/socket.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/socket.h b/include/linux/socket.h index 4cd4850d7..602d03b5d 100644 --- a/include/linux/socket.h +++ b/include/linux/socket.h @@ -269,6 +269,9 @@ struct ucred { #define SOL_NETBEUI 267 #define SOL_LLC 268 +/* PlanetLab PL2525: reset the context ID of an existing socket */ +#define SO_SETXID SO_PEERCRED + /* IPX options */ #define IPX_TYPE 1 -- 2.47.0