diff options
author | Jeff Layton <jlayton@kernel.org> | 2024-04-23 16:25:39 +0300 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2024-05-06 16:07:20 +0300 |
commit | 9077d59847896745712dff00839eac14f84b21f8 (patch) | |
tree | 80d4e1b38c02f8fc75e0163a2e4960993f3bc738 /fs/nfsd/nfsctl.c | |
parent | 0842b4c80bc7162a803b1558dc6d887e0e8feb39 (diff) | |
download | linux-9077d59847896745712dff00839eac14f84b21f8.tar.xz |
NFSD: allow callers to pass in scope string to nfsd_svc
Currently admins set this by using unshare to create a new uts
namespace, and then resetting the hostname. With the new netlink
interface we can just pass this in directly. Prepare nfsd_svc for
this change.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/nfsctl.c')
-rw-r--r-- | fs/nfsd/nfsctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 2fe78b802f98..34148d73b6c1 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c @@ -405,7 +405,7 @@ static ssize_t write_threads(struct file *file, char *buf, size_t size) return -EINVAL; trace_nfsd_ctl_threads(net, newthreads); mutex_lock(&nfsd_mutex); - rv = nfsd_svc(newthreads, net, file->f_cred); + rv = nfsd_svc(newthreads, net, file->f_cred, NULL); mutex_unlock(&nfsd_mutex); if (rv < 0) return rv; |