git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
patch for perf with gcc-4.6
[linux-2.6.git]
/
linux-2.6-523-raw-sockets.patch
diff --git
a/linux-2.6-523-raw-sockets.patch
b/linux-2.6-523-raw-sockets.patch
index
f24ebd8
..
196045e
100644
(file)
--- a/
linux-2.6-523-raw-sockets.patch
+++ b/
linux-2.6-523-raw-sockets.patch
@@
-63,7
+63,7
@@
index 9e8942b..1c0b4a5 100644
+++ b/net/ipv4/af_inet.c
@@ -332,6 +332,9 @@ lookup_protocol:
if ((protocol == IPPROTO_ICMP) &&
+++ b/net/ipv4/af_inet.c
@@ -332,6 +332,9 @@ lookup_protocol:
if ((protocol == IPPROTO_ICMP) &&
- nx_capable(CAP_NET_RAW, NXC_RAW_ICMP))
+ nx_capable(CAP_NET_RAW, NXC_RAW_ICMP))
goto override;
+ if (sock->type == SOCK_RAW &&
+ nx_capable(CAP_NET_RAW, NXC_RAW_SOCKET))
goto override;
+ if (sock->type == SOCK_RAW &&
+ nx_capable(CAP_NET_RAW, NXC_RAW_SOCKET))