aboutsummaryrefslogtreecommitdiff
path: root/net/core/net_namespace.c
diff options
context:
space:
mode:
authorGravatar Vadim Kochan <vadim4j@gmail.com> 2015-01-12 16:34:05 +0200
committerGravatar Johannes Berg <johannes.berg@intel.com> 2015-01-23 10:25:25 +0100
commit4b681c82d2f9bef121c912ffcaac89a004af3f2c (patch)
treeaf24f8eb044ffbddd346c3e34cd611963ab760ef /net/core/net_namespace.c
parentmac80211: allow drivers to control software crypto (diff)
downloadlinux-4b681c82d2f9bef121c912ffcaac89a004af3f2c.tar.gz
linux-4b681c82d2f9bef121c912ffcaac89a004af3f2c.tar.bz2
linux-4b681c82d2f9bef121c912ffcaac89a004af3f2c.zip
nl80211: Allow set network namespace by fd
Added new NL80211_ATTR_NETNS_FD which allows to set namespace via nl80211 by fd. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/core/net_namespace.c')
-rw-r--r--net/core/net_namespace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c
index 7f155175bba8..5d5ee8f3e4ff 100644
--- a/net/core/net_namespace.c
+++ b/net/core/net_namespace.c
@@ -361,6 +361,7 @@ struct net *get_net_ns_by_fd(int fd)
return ERR_PTR(-EINVAL);
}
#endif
+EXPORT_SYMBOL_GPL(get_net_ns_by_fd);
struct net *get_net_ns_by_pid(pid_t pid)
{