nfs-utils: signed filehandle support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v7 Latest2 patches 1 replyIn review
- v62 patches 0 repliesSuperseded
- v52 patches 0 repliesSuperseded
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v4 | 2 patches | 3 replies | Superseded | |
| v3 | 2 patches | 5 replies | Superseded | |
| v2 | 2 patches | 1 reply | Superseded | |
| v1 | 2 patches | 12 replies | Superseded |
Patches in v7 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | exportfs: Add support for export option sign_fhsupport/ support/ utils/ +1 more | +16 | 0 replies | |
| 2/2 | nfsdctl/rpc.nfsd: Add support for passing encrypted filehandle keynfs.conf support/ support/ +6 more | +129 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v7 yet.
Cover letter [PATCH v7 0/2] nfs-utils: signed filehandle support
Here are two patches allowing userspace to set a secret key for kNFSD to sign filehandles, and also set the option to sign filehandles for an export.
The secret key passed to the server is the first 128 bits of a sha1 hash of the contents of a file configured via the nfs.conf server section "fh_key_file". Exports that have the option "sign_fh" set will cause the server to use this key to append an 8-byte siphash of the filehandle onto each filehandle.
This version of the userspace patches correspond with the v7 of the kernel changes which have been posted here:
https://lore.kernel.org/linux-nfs/[email protected]
and are currently queued up for potentical inclusion to linux kernel v7.1.
Changes on v5:
- add -k,--fh-key_file= argument to "nfsdctl threads" command (Jeff Layton)
- fail if "nfsdctl threads -k" unsuported by kernel (Jeff Layton)
Changes on v6:
- fix a premature exit from fh-key-file hashing routine
Changes on v7:
- fix another corner-case for hasing fh-key-file, simplify.
Benjamin Coddington (2):
exportfs: Add support for export option sign_fh nfsdctl/rpc.nfsd: Add support for passing encrypted filehandle key
nfs.conf | 1 + support/include/nfs/export.h | 2 +- support/include/nfslib.h | 2 ++ support/nfs/Makefile.am | 4 +-- support/nfs/exports.c | 4 +++ support/nfs/fh_key_file.c | 63 ++++++++++++++++++++++++++++++++++++ systemd/nfs.conf.man | 1 + utils/exportfs/exportfs.c | 2 ++ utils/exportfs/exports.man | 9 ++++++ utils/nfsd/nfssvc.h | 1 + utils/nfsdctl/nfsd_netlink.h | 1 + utils/nfsdctl/nfsdctl.8 | 8 ++++- utils/nfsdctl/nfsdctl.c | 57 ++++++++++++++++++++++++++++---- 13 files changed, 145 insertions(+), 10 deletions(-) create mode 100644 support/nfs/fh_key_file.c
base-commit: 4706bac0345f67c50b73fd8da1c2629ed15ff79d
Signature · 1 line
2.53.0