Skip to content

Commit 96340c1

Browse files
committed
tlshd: Add default keyrings for NFS
The NFS mount command is to add keys to the .nfs keyring. Also add a keyring for NFSD configuration. Signed-off-by: Chuck Lever <[email protected]>
1 parent 3ff8a36 commit 96340c1

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

src/tlshd/config.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,18 @@ bool tlshd_config_init(const gchar *pathname)
9999
for (i = 0; i < length; i++) {
100100
if (!strcmp(keyrings[i], ".nvme"))
101101
continue;
102+
if (!strcmp(keyrings[i], ".nfs"))
103+
continue;
104+
if (!strcmp(keyrings[i], ".nfsd"))
105+
continue;
102106
tlshd_keyring_link_session(keyrings[i]);
103107
}
104108
g_strfreev(keyrings);
105109
}
106-
/*
107-
* Always link the default nvme subsystem keyring into the
108-
* session.
109-
*/
110+
/* The ".nvme", ".nfs", and ".nfsd" keyrings cannot be disabled. */
110111
tlshd_keyring_link_session(".nvme");
112+
tlshd_keyring_link_session(".nfs");
113+
tlshd_keyring_link_session(".nfsd");
111114

112115
return true;
113116
}

src/tlshd/tlshd.conf.man

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,13 @@ that contain handshake authentication tokens.
7979
.B tlshd
8080
links these keyrings into its session keyring.
8181
The configuration file may specify either a keyring's name or serial number.
82-
The default is to provide no keyring.
82+
.B tlshd
83+
always includes the
84+
.IR .nvme ,
85+
.IR .nfs ,
86+
and
87+
.I .nfsd
88+
keyrings on its session keyring.
8389
.P
8490
And, in this section, there are two subsections:
8591
.I [client]

0 commit comments

Comments
 (0)