]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
NFS: support the kernel keyring for TLS
authorChristoph Hellwig <hch@lst.de>
Thu, 15 May 2025 11:50:55 +0000 (13:50 +0200)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 14 Jul 2025 22:20:27 +0000 (15:20 -0700)
commit90c9550a8d65fb9b1bf87baf97a04ed91bf61b33
tree9aa94297efd19c59877c6986e9c588e15beabcc0
parent72508db0fe1762f2cfcff1cb4cf28a8e645bdd43
NFS: support the kernel keyring for TLS

Allow tlshd to use a per-mount key from the kernel keyring similar
to NVMe over TCP.

Note that tlshd expects keys and certificates stored in the kernel
keyring to be in DER format, not the PEM format used for file based keys
and certificates, so they need to be converted before they are added
to the keyring, which is a bit unexpected.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Link: https://lore.kernel.org/r/20250515115107.33052-2-hch@lst.de
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/fs_context.c