backport acx100 2.6.24 fixes from SVN
[openwrt.git] / package / aodv-uu / patches / 003-linux_2.6.19_security_netlink_recv_change.patch
1 Index: aodv-uu-0.9.3/lnx/kaodv-netlink.c
2 ===================================================================
3 --- aodv-uu-0.9.3.orig/lnx/kaodv-netlink.c 2007-06-04 13:22:19.810843576 +0200
4 +++ aodv-uu-0.9.3/lnx/kaodv-netlink.c 2007-06-04 13:22:20.326765144 +0200
5 @@ -284,7 +284,11 @@
6 /* RCV_SKB_FAIL(-EINVAL); */
7
8 #ifdef KERNEL26
9 +# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
10 + if (security_netlink_recv(skb, CAP_NET_ADMIN))
11 +# else
12 if (security_netlink_recv(skb))
13 +# endif
14 RCV_SKB_FAIL(-EPERM);
15 #endif
16 //write_lock_bh(&queue_lock);
This page took 0.043524 seconds and 5 git commands to generate.