From f74ad9eee7221ca67fa489b44c3d065c54e65d4d Mon Sep 17 00:00:00 2001 From: Sagi Grimberg Date: Tue, 28 Apr 2026 11:15:14 +0300 Subject: [PATCH] NFS: show redacted cert_serial and privkey_serial in mount options mount output should not reveal the contents of the serials, but indicate they were provided. Signed-off-by: Sagi Grimberg Signed-off-by: Anna Schumaker --- fs/nfs/super.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/nfs/super.c b/fs/nfs/super.c index 4cd420b14ce3f..ff798b6685f8a 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c @@ -509,6 +509,10 @@ static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss, default: break; } + if (clp->cl_xprtsec.cert_serial) + seq_puts(m, ",cert_serial="); + if (clp->cl_xprtsec.privkey_serial) + seq_puts(m, ",privkey_serial="); if (version != 4) nfs_show_mountd_options(m, nfss, showdefaults); -- 2.47.3