diff options
author | Trond Myklebust <trondmy@gmail.com> | 2019-04-09 18:13:39 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2019-04-24 15:46:35 +0200 |
commit | 40373b125de6bab186e71d5ea5498bb2b845398b (patch) | |
tree | 729dd4fc2bf1ae22ed7ac579799b8e4165ba60da /fs/nfsd | |
parent | SUNRPC: Temporary sockets should inherit the cred from their parent (diff) | |
download | linux-40373b125de6bab186e71d5ea5498bb2b845398b.tar.xz linux-40373b125de6bab186e71d5ea5498bb2b845398b.zip |
lockd: Pass the user cred from knfsd when starting the lockd server
When starting up a new knfsd server, pass the user cred to the
supporting lockd server.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfssvc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index 32e4d8a334e3..18d94ea984ba 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c @@ -364,7 +364,7 @@ static int nfsd_startup_net(int nrservs, struct net *net, const struct cred *cre goto out_socks; if (nfsd_needs_lockd(nn) && !nn->lockd_up) { - ret = lockd_up(net); + ret = lockd_up(net, cred); if (ret) goto out_socks; nn->lockd_up = 1; |