summaryrefslogtreecommitdiff
path: root/net/core/net_namespace.c
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-01-12 17:34:05 +0300
committerJohannes Berg <johannes.berg@intel.com>2015-01-23 12:25:25 +0300
commit4b681c82d2f9bef121c912ffcaac89a004af3f2c (patch)
treeaf24f8eb044ffbddd346c3e34cd611963ab760ef /net/core/net_namespace.c
parentfa7e1fbcb52cc9efab394526a566d80fb31529bb (diff)
downloadlinux-4b681c82d2f9bef121c912ffcaac89a004af3f2c.tar.xz
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)
{