]> 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)
commit72b86909f4bb214134ede4e8e042cfbd750ad216
tree4a8b72b837553c2b3658f147a65a50d13a51267a
parenta2a3340b278e06ae8df3428b0c69e3a3f792e31c
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