]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a new "tlscertname" NFS mount option.
authorRick Macklem <rmacklem@FreeBSD.org>
Mon, 21 Dec 2020 23:14:53 +0000 (15:14 -0800)
committerRick Macklem <rmacklem@FreeBSD.org>
Wed, 23 Dec 2020 21:42:55 +0000 (13:42 -0800)
commit665b1365fe8e24d618d63b0d57b0b4ad39e97824
tree44fecd432dcd0b10c880a0fe045f5ba27d5a3a67
parente523262107865130e40fb19f7c3c571c8dd0b252
Add a new "tlscertname" NFS mount option.

When using NFS-over-TLS, an NFS client can optionally provide an X.509
certificate to the server during the TLS handshake.  For some situations,
such as different NFS servers or different certificates being mapped
to different user credentials on the NFS server, there may be a need
for different mounts to provide different certificates.

This new mount option called "tlscertname" may be used to specify a
non-default certificate be provided.  This alernate certificate will
be stored in /etc/rpc.tlsclntd in a file with a name based on what is
provided by this mount option.
sys/fs/nfs/nfs_commonkrpc.c
sys/fs/nfsclient/nfs_clvfsops.c
sys/fs/nfsclient/nfsmount.h
sys/rpc/clnt.h
sys/rpc/clnt_rc.c
sys/rpc/krpc.h
sys/rpc/rpcsec_tls.h
sys/rpc/rpcsec_tls/rpctls_impl.c
sys/rpc/rpcsec_tls/rpctlscd.x