Skip to content

Commit fea9911

Browse files
committed
rxrpc: The server keyring isn't network-namespaced
The keyring containing the server's tokens isn't network-namespaced, so it shouldn't be looked up with a network namespace. It is expected to be owned specifically by the server, so namespacing is unnecessary. Fixes: a58946c ("keys: Pass the network namespace into request_key mechanism") Signed-off-by: David Howells <dhowells@redhat.com>
1 parent 2d914c1 commit fea9911

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

net/rxrpc/key.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ int rxrpc_server_keyring(struct rxrpc_sock *rx, sockptr_t optval, int optlen)
940940
if (IS_ERR(description))
941941
return PTR_ERR(description);
942942

943-
key = request_key_net(&key_type_keyring, description, sock_net(&rx->sk), NULL);
943+
key = request_key(&key_type_keyring, description, NULL);
944944
if (IS_ERR(key)) {
945945
kfree(description);
946946
_leave(" = %ld", PTR_ERR(key));

0 commit comments

Comments
 (0)