afs: Implement network namespacing
Implement network namespacing within AFS, but don't yet let mounts occur outside the init namespace. An additional patch will be required propagate the network namespace across automounts. Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
@@ -45,7 +45,7 @@ int afs_open_socket(struct afs_net *net)
|
||||
|
||||
_enter("");
|
||||
|
||||
ret = sock_create_kern(&init_net, AF_RXRPC, SOCK_DGRAM, PF_INET6, &socket);
|
||||
ret = sock_create_kern(net->net, AF_RXRPC, SOCK_DGRAM, PF_INET6, &socket);
|
||||
if (ret < 0)
|
||||
goto error_1;
|
||||
|
||||
|
Reference in New Issue
Block a user