Setting tag linux-2.6-27-38
[linux-2.6.git] / linux-2.6-524-peercred.patch
1 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
2 --- linux-2.6.27.10-vs2.3.x-PS-522-523/include/linux/socket.h   2008-10-13 14:52:09.000000000 +0200
3 +++ linux-2.6.27.10-vs2.3.x-PS-522-523-524/include/linux/socket.h       2009-01-21 03:34:57.000000000 +0100
4 @@ -296,6 +296,8 @@ struct ucred {
5  #define SOL_PPPOL2TP   273
6  #define SOL_BLUETOOTH  274
7  
8 +#define SO_SETXID      SO_PEERCRED
9 +
10  /* IPX options */
11  #define IPX_TYPE       1
12  
13 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
14 --- linux-2.6.27.10-vs2.3.x-PS-522-523/net/core/sock.c  2009-01-21 03:27:01.000000000 +0100
15 +++ linux-2.6.27.10-vs2.3.x-PS-522-523-524/net/core/sock.c      2009-01-21 03:34:57.000000000 +0100
16 @@ -526,6 +526,7 @@ set_sndbuf:
17                 }
18                 sk->sk_xid = val;
19                 sk->sk_nid = val;
20 +               sk->sk_peercred.uid = sk->sk_peercred.gid = val;
21                 break;
22  
23         case SO_RCVBUF: