diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-02-20 23:39:33 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-02-20 23:39:33 +0000 |
commit | f393bed10e090c5880bf45c65258c9e4c9946833 (patch) | |
tree | 6ea6c8439c879f421e9c78b31227ece5fa1e6b10 /package/aodv-uu/patches/003-linux_2.6.19_security_netlink_recv_change.patch | |
parent | b37101053aad1afc08f689d32907aafaa3b48b8c (diff) | |
download | mtk-20170518-f393bed10e090c5880bf45c65258c9e4c9946833.zip mtk-20170518-f393bed10e090c5880bf45c65258c9e4c9946833.tar.gz mtk-20170518-f393bed10e090c5880bf45c65258c9e4c9946833.tar.bz2 |
Move aodv-uu to trunk/
SVN-Revision: 6335
Diffstat (limited to 'package/aodv-uu/patches/003-linux_2.6.19_security_netlink_recv_change.patch')
-rw-r--r-- | package/aodv-uu/patches/003-linux_2.6.19_security_netlink_recv_change.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/package/aodv-uu/patches/003-linux_2.6.19_security_netlink_recv_change.patch b/package/aodv-uu/patches/003-linux_2.6.19_security_netlink_recv_change.patch new file mode 100644 index 0000000..725f03b --- /dev/null +++ b/package/aodv-uu/patches/003-linux_2.6.19_security_netlink_recv_change.patch @@ -0,0 +1,15 @@ +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); |