rxrpc: Allow CHALLENGEs to the passed to the app for a RESPONSE
authorDavid Howells <dhowells@redhat.com>
Fri, 11 Apr 2025 09:52:49 +0000 (10:52 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Apr 2025 00:36:41 +0000 (17:36 -0700)
commit5800b1cf3fd8ccab752a101865be1e76dac33142
tree74a35f39e980677e240a4cb7034eea93b43e0eef
parent019c8433eb2931a422376d2b0079d751aa948d4c
rxrpc: Allow CHALLENGEs to the passed to the app for a RESPONSE

Allow the app to request that CHALLENGEs be passed to it through an
out-of-band queue that allows recvmsg() to pick it up so that the app can
add data to it with sendmsg().

This will allow the application (AFS or userspace) to interact with the
process if it wants to and put values into user-defined fields.  This will
be used by AFS when talking to a fileserver to supply that fileserver with
a crypto key by which callback RPCs can be encrypted (ie. notifications
from the fileserver to the client).

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: Simon Horman <horms@kernel.org>
cc: linux-afs@lists.infradead.org
Link: https://patch.msgid.link/20250411095303.2316168-5-dhowells@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
23 files changed:
Documentation/networking/rxrpc.rst
fs/afs/Makefile
fs/afs/cm_security.c [new file with mode: 0644]
fs/afs/internal.h
fs/afs/main.c
fs/afs/rxrpc.c
include/net/af_rxrpc.h
include/trace/events/rxrpc.h
include/uapi/linux/rxrpc.h
net/rxrpc/Makefile
net/rxrpc/af_rxrpc.c
net/rxrpc/ar-internal.h
net/rxrpc/call_object.c
net/rxrpc/conn_event.c
net/rxrpc/conn_object.c
net/rxrpc/insecure.c
net/rxrpc/io_thread.c
net/rxrpc/oob.c [new file with mode: 0644]
net/rxrpc/output.c
net/rxrpc/recvmsg.c
net/rxrpc/rxkad.c
net/rxrpc/sendmsg.c
net/rxrpc/server_key.c