summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2020-09-30 19:52:08 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-10-14 11:55:58 +0200
commitbf123536563755173a8879ebc9a0319189c1f1ad (patch)
tree1ee6384766cbdd586acefce63bf2f57fa826c2be
parent0fb27a1f99c1b16fef099258b7887ea74e4a7727 (diff)
downloadlinux-bf123536563755173a8879ebc9a0319189c1f1ad.tar.gz
linux-bf123536563755173a8879ebc9a0319189c1f1ad.tar.bz2
linux-bf123536563755173a8879ebc9a0319189c1f1ad.zip
rxrpc: The server keyring isn't network-namespaced
[ Upstream commit fea99111244bae44e7d82a973744d27ea1567814 ] 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: a58946c158a0 ("keys: Pass the network namespace into request_key mechanism") Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--net/rxrpc/key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rxrpc/key.c b/net/rxrpc/key.c
index 32f46edcf7c6..64cbbd2f1694 100644
--- a/net/rxrpc/key.c
+++ b/net/rxrpc/key.c
@@ -941,7 +941,7 @@ int rxrpc_server_keyring(struct rxrpc_sock *rx, char __user *optval,
if (IS_ERR(description))
return PTR_ERR(description);
- key = request_key_net(&key_type_keyring, description, sock_net(&rx->sk), NULL);
+ key = request_key(&key_type_keyring, description, NULL);
if (IS_ERR(key)) {
kfree(description);
_leave(" = %ld", PTR_ERR(key));