Skip to content

nfs-utils: encrypted filehandle support

Benjamin Coddington linux-crypto linux-nfs oe-kbuild-all 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2nfsdctl: Add support for passing encrypted filehandle keyconfigure.ac nfs.conf systemd/nfs.conf.man +4 more+145 -70 replies
2/2exportfs: Add support for export option encrypt_fhsupport/include/nfs/export.h support/nfs/exports.c utils/exportfs/exportfs.c +1 more+13 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/2] nfs-utils: encrypted filehandle support

Here are two patches allowing userspace to set a secret key for kNFSD to encrypt filehandles, and also set the option to encrypt filehandles for an export.

The secret key is only implemented via nfs.conf and "nfsdctl autostart", as further interfaces to set it into the kernel have not yet been built. I expect we may need a way for rpc.nfsd to set the key - but perhaps the community would like to continue to transition to nfsdctl for future features.

Comments and critique welcomed.

Benjamin Coddington (2):
nfsdctl: Add support for passing encrypted filehandle key
exportfs: Add support for export option encrypt_fh

 configure.ac                 |   4 +-
 nfs.conf                     |   1 +
 support/include/nfs/export.h |   2 +-
 support/nfs/exports.c        |   4 ++
 systemd/nfs.conf.man         |   1 +
 utils/exportfs/exportfs.c    |   2 +
 utils/exportfs/exports.man   |   6 ++
 utils/nfsdctl/Makefile.am    |   2 +-
 utils/nfsdctl/nfsd_netlink.h |   2 +
 utils/nfsdctl/nfsdctl.c      | 132 ++++++++++++++++++++++++++++++++++-
 utils/nfsdctl/nfsdctl.h      |  10 ++-
 11 files changed, 158 insertions(+), 8 deletions(-)
Signature · 1 line
2.50.1