aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_frontend.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/fib_frontend.c')
-rw-r--r--net/ipv4/fib_frontend.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c
index 784716a677ce..5cd75e2dab2c 100644
--- a/net/ipv4/fib_frontend.c
+++ b/net/ipv4/fib_frontend.c
@@ -613,9 +613,6 @@ static int inet_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh, void *ar
613 struct fib_table *tb; 613 struct fib_table *tb;
614 int err; 614 int err;
615 615
616 if (!capable(CAP_NET_ADMIN))
617 return -EPERM;
618
619 err = rtm_to_fib_config(net, skb, nlh, &cfg); 616 err = rtm_to_fib_config(net, skb, nlh, &cfg);
620 if (err < 0) 617 if (err < 0)
621 goto errout; 618 goto errout;
@@ -638,9 +635,6 @@ static int inet_rtm_newroute(struct sk_buff *skb, struct nlmsghdr *nlh, void *ar
638 struct fib_table *tb; 635 struct fib_table *tb;
639 int err; 636 int err;
640 637
641 if (!capable(CAP_NET_ADMIN))
642 return -EPERM;
643
644 err = rtm_to_fib_config(net, skb, nlh, &cfg); 638 err = rtm_to_fib_config(net, skb, nlh, &cfg);
645 if (err < 0) 639 if (err < 0)
646 goto errout; 640 goto errout;