ARM: at91/at91_dt_defconfig: remove memory specification to cmdline
[cascardo/linux.git] / net / core / fib_rules.c
index bf5b5b8..58a4ba2 100644 (file)
@@ -275,9 +275,6 @@ static int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg)
        struct nlattr *tb[FRA_MAX+1];
        int err = -EINVAL, unresolved = 0;
 
-       if (!capable(CAP_NET_ADMIN))
-               return -EPERM;
-
        if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*frh)))
                goto errout;
 
@@ -427,9 +424,6 @@ static int fib_nl_delrule(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg)
        struct nlattr *tb[FRA_MAX+1];
        int err = -EINVAL;
 
-       if (!capable(CAP_NET_ADMIN))
-               return -EPERM;
-
        if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*frh)))
                goto errout;