1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-07 01:36:16 +02:00
openwrt-xburst/package/aodv-uu/patches/003-linux_2.6.19_security_netlink_recv_change.patch
florian 7923c5e52c Move aodv-uu to trunk/
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6335 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-02-20 23:39:33 +00:00

16 lines
532 B
Diff

diff -ruN aodv-uu-0.9.3-old/lnx/kaodv-netlink.c aodv-uu-0.9.3-new/lnx/kaodv-netlink.c
--- aodv-uu-0.9.3-old/lnx/kaodv-netlink.c 2006-09-20 19:58:38.000000000 +0200
+++ aodv-uu-0.9.3-new/lnx/kaodv-netlink.c 2006-12-16 22:14:14.000000000 +0100
@@ -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);