]> git.baikalelectronics.ru Git - 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)
commit84387551d54df608876927755c762c2eadefbd0b
tree010da034dffdcc8dc1386170f94b27e9f342c691
parente16352f75ce5fa271409974efbf109e6c088568c
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