net: Add variants of capable for use on on sockets
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 23 Apr 2014 21:26:56 +0000 (14:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jun 2014 19:12:37 +0000 (15:12 -0400)
commitc35b4e287f5ede32bae6db1aef1ae3e9174bb2ff
tree2b2e7e787a1c49166df41c0ecc2d20a3aa585730
parentf0efa2954c20ab833bf99acba0a0817f1deee9e0
net: Add variants of capable for use on on sockets

[ Upstream commit a3b299da869d6e78cf42ae0b1b41797bcb8c5e4b ]

sk_net_capable - The common case, operations that are safe in a network namespace.
sk_capable - Operations that are not known to be safe in a network namespace
sk_ns_capable - The general case for special cases.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/net/sock.h
net/core/sock.c