net: Allow tc changes in user namespaces
authorStéphane Graber <stgraber@ubuntu.com>
Wed, 30 Apr 2014 15:25:43 +0000 (11:25 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 May 2014 21:43:25 +0000 (17:43 -0400)
commit4e8bbb819d1594a01f91b1de83321f68d3e6e245
treeb4f187161c4530eab963ee8d1e35d42366d2fa1a
parent3c4de5a0a3e7f8e5af18ed7a2275d189734f897a
net: Allow tc changes in user namespaces

This switches a few remaining capable(CAP_NET_ADMIN) to ns_capable so
that root in a user namespace may set tc rules inside that namespace.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: "David S. Miller" <davem@davemloft.net>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c
net/sched/sch_api.c