From: Mark Huang Date: Wed, 20 Oct 2004 02:33:41 +0000 (+0000) Subject: - PL2525 fix: implement SO_SETXID (reset the context ID of an existing X-Git-Tag: before-enable-kexec-patch~34 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=26d87f670b6028bc29c99c963b09476c84ed04f5;p=linux-2.6.git - 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()). --- 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