Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git] / net / core / rtnetlink.c
index 84ca035..375dd90 100644 (file)
@@ -16,6 +16,7 @@
  *     Vitaly E. Lavrov                RTA_OK arithmetics was wrong.
  */
 
+#include <linux/config.h>
 #include <linux/errno.h>
 #include <linux/module.h>
 #include <linux/types.h>
@@ -681,7 +682,7 @@ rtnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, int *errp)
        sz_idx = type>>2;
        kind = type&3;
 
-       if (kind != 2 && security_netlink_recv(skb, CAP_NET_ADMIN)) {
+       if (kind != 2 && security_netlink_recv(skb)) {
                *errp = -EPERM;
                return -1;
        }