]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Apr 2014 17:44:53 +0000 (13:44 -0400)
commita3b299da869d6e78cf42ae0b1b41797bcb8c5e4b
tree010da034dffdcc8dc1386170f94b27e9f342c691
parenta53b72c83a4216f2eb883ed45a0cbce014b8e62d
net: Add variants of capable for use on on sockets

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>
include/net/sock.h
net/core/sock.c