|
@@ -789,12 +789,13 @@ static const void *net_netlink_ns(struct sock *sk)
|
|
return sock_net(sk);
|
|
return sock_net(sk);
|
|
}
|
|
}
|
|
|
|
|
|
-static struct kobj_ns_type_operations net_ns_type_operations = {
|
|
|
|
|
|
+struct kobj_ns_type_operations net_ns_type_operations = {
|
|
.type = KOBJ_NS_TYPE_NET,
|
|
.type = KOBJ_NS_TYPE_NET,
|
|
.current_ns = net_current_ns,
|
|
.current_ns = net_current_ns,
|
|
.netlink_ns = net_netlink_ns,
|
|
.netlink_ns = net_netlink_ns,
|
|
.initial_ns = net_initial_ns,
|
|
.initial_ns = net_initial_ns,
|
|
};
|
|
};
|
|
|
|
+EXPORT_SYMBOL_GPL(net_ns_type_operations);
|
|
|
|
|
|
static void net_kobj_ns_exit(struct net *net)
|
|
static void net_kobj_ns_exit(struct net *net)
|
|
{
|
|
{
|