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)
commit90e229ef61fad240554f5899eb122fbe44990f78
tree4a8b72b837553c2b3658f147a65a50d13a51267a
parent87e3de1e4e21f8d00dd5eacbf4825b8b15bdbe87
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