git://git.onelab.eu
/
linux-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
272fe31
)
- PL2525 fix: implement SO_SETXID (reset the context ID of an existing
author
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 20 Oct 2004 02:33:41 +0000
(
02:33
+0000)
committer
Mark 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
patch
|
blob
|
history
diff --git
a/include/linux/socket.h
b/include/linux/socket.h
index
4cd4850
..
602d03b
100644
(file)
--- 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