]> git.baikalelectronics.ru Git - kernel.git/commit
ppp: allow usage in namespaces
authorMatteo Croce <mcroce@redhat.com>
Fri, 27 Oct 2017 18:08:23 +0000 (20:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Oct 2017 02:55:32 +0000 (11:55 +0900)
commit2cd508c0b044dfe5972994d3184b3cd2a2f2d263
tree4a8b72b837553c2b3658f147a65a50d13a51267a
parent0ae8bd5005fb8b1e1cf6581d9a7d0438b85c1338
ppp: allow usage in namespaces

Check for CAP_NET_ADMIN with ns_capable() instead of capable()
to allow usage of ppp in user namespace other than the init one.

Signed-off-by: Matteo Croce <mcroce@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp/ppp_generic.c