]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: psp: add socket security association code
authorJakub Kicinski <kuba@kernel.org>
Wed, 17 Sep 2025 00:09:35 +0000 (17:09 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 18 Sep 2025 10:32:06 +0000 (12:32 +0200)
commit6b46ca260e2290e3453d1355ab5b6d283d73d780
treec4b1acb69f3a50ae935a5520a99f4aa182b8b7c1
parent0917bb139eed467a6376db903ad7a67981ec1420
net: psp: add socket security association code

Add the ability to install PSP Rx and Tx crypto keys on TCP
connections. Netlink ops are provided for both operations.
Rx side combines allocating a new Rx key and installing it
on the socket. Theoretically these are separate actions,
but in practice they will always be used one after the
other. We can add distinct "alloc" and "install" ops later.

Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Co-developed-by: Daniel Zahka <daniel.zahka@gmail.com>
Signed-off-by: Daniel Zahka <daniel.zahka@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250917000954.859376-9-daniel.zahka@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
12 files changed:
Documentation/netlink/specs/psp.yaml
include/net/psp/functions.h
include/net/psp/types.h
include/uapi/linux/psp.h
net/psp/Kconfig
net/psp/Makefile
net/psp/psp-nl-gen.c
net/psp/psp-nl-gen.h
net/psp/psp.h
net/psp/psp_main.c
net/psp/psp_nl.c
net/psp/psp_sock.c [new file with mode: 0644]