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)
committerJiri Slaby <jslaby@suse.cz>
Mon, 23 Jun 2014 08:27:56 +0000 (10:27 +0200)
commit8c91777bd4951c1f1ad59842fe4d208f94a97dfe
tree1efd2d09f6d7b3b76c3458c4af1a9c5dfd66d652
parent4dcecf4ce16a20c210e91a62ae28275418e3ed2c
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: Jiri Slaby <jslaby@suse.cz>
include/net/sock.h
net/core/sock.c