X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=linux-2.6-524-peercred.patch;h=47a227fc3ad3be4fdb1613fc80a6de4c76ff22bd;hb=refs%2Fheads%2F27;hp=3cc87e8df83adb3f912117645458e7ed9a89c36e;hpb=15a27320917fe4100c0204359a6a9d18349fb31d;p=linux-2.6.git diff --git a/linux-2.6-524-peercred.patch b/linux-2.6-524-peercred.patch index 3cc87e8df..47a227fc3 100644 --- a/linux-2.6-524-peercred.patch +++ b/linux-2.6-524-peercred.patch @@ -1,14 +1,23 @@ -diff -Nurb linux-2.6.22-510/include/linux/socket.h linux-2.6.22-520/include/linux/socket.h ---- linux-2.6.22-510/include/linux/socket.h 2007-07-08 19:32:17.000000000 -0400 -+++ linux-2.6.22-520/include/linux/socket.h 2008-06-06 17:07:56.000000000 -0400 -@@ -288,6 +288,8 @@ - #define SOL_TIPC 271 - #define SOL_RXRPC 272 +diff -NurpP --exclude '*.orig' --exclude '*.rej' linux-2.6.27.10-vs2.3.x-PS-522-523/include/linux/socket.h linux-2.6.27.10-vs2.3.x-PS-522-523-524/include/linux/socket.h +--- linux-2.6.27.10-vs2.3.x-PS-522-523/include/linux/socket.h 2008-10-13 14:52:09.000000000 +0200 ++++ linux-2.6.27.10-vs2.3.x-PS-522-523-524/include/linux/socket.h 2009-01-21 03:34:57.000000000 +0100 +@@ -296,6 +296,8 @@ struct ucred { + #define SOL_PPPOL2TP 273 + #define SOL_BLUETOOTH 274 +#define SO_SETXID SO_PEERCRED + /* IPX options */ #define IPX_TYPE 1 - - +diff -NurpP --exclude '*.orig' --exclude '*.rej' linux-2.6.27.10-vs2.3.x-PS-522-523/net/core/sock.c linux-2.6.27.10-vs2.3.x-PS-522-523-524/net/core/sock.c +--- linux-2.6.27.10-vs2.3.x-PS-522-523/net/core/sock.c 2009-01-21 03:27:01.000000000 +0100 ++++ linux-2.6.27.10-vs2.3.x-PS-522-523-524/net/core/sock.c 2009-01-21 03:34:57.000000000 +0100 +@@ -526,6 +526,7 @@ set_sndbuf: + } + sk->sk_xid = val; + sk->sk_nid = val; ++ sk->sk_peercred.uid = sk->sk_peercred.gid = val; + break; + + case SO_RCVBUF: