summaryrefslogtreecommitdiff
path: root/package/aodv-uu/patches/003-linux_2.6.19_security_netlink_recv_change.patch
blob: 53d90643dccfadf8fbf3b251a4203a0bcc107dfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Index: aodv-uu-0.9.3/lnx/kaodv-netlink.c
===================================================================
--- aodv-uu-0.9.3.orig/lnx/kaodv-netlink.c	2007-06-04 13:22:19.810843576 +0200
+++ aodv-uu-0.9.3/lnx/kaodv-netlink.c	2007-06-04 13:22:20.326765144 +0200
@@ -284,7 +284,11 @@
 /* 		RCV_SKB_FAIL(-EINVAL); */
 
 #ifdef KERNEL26
+# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)	
+	if (security_netlink_recv(skb, CAP_NET_ADMIN))
+# else	
 	if (security_netlink_recv(skb))
+# endif
 		RCV_SKB_FAIL(-EPERM);
 #endif
 	//write_lock_bh(&queue_lock);