NFSD: allow callers to pass in scope string to nfsd_svc
authorJeff Layton <jlayton@kernel.org>
Tue, 23 Apr 2024 13:25:39 +0000 (15:25 +0200)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 6 May 2024 13:07:20 +0000 (09:07 -0400)
commit9077d59847896745712dff00839eac14f84b21f8
tree80d4e1b38c02f8fc75e0163a2e4960993f3bc738
parent0842b4c80bc7162a803b1558dc6d887e0e8feb39
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>
fs/nfsd/nfsctl.c
fs/nfsd/nfsd.h
fs/nfsd/nfssvc.c