- PL2525 fix: implement SO_SETXID (reset the context ID of an existing
authorMark Huang <mlhuang@cs.princeton.edu>
Wed, 20 Oct 2004 02:33:41 +0000 (02:33 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Wed, 20 Oct 2004 02:33:41 +0000 (02:33 +0000)
  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

index 4cd4850..602d03b 100644 (file)
@@ -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