]> www.infradead.org Git - users/dwmw2/linux.git/commit
NFSv4: pnfs_roc() must use cred_fscmp() to compare creds
authorTrond Myklebust <trondmy@gmail.com>
Sun, 26 Jan 2020 22:31:13 +0000 (17:31 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2020 21:52:59 +0000 (16:52 -0500)
commit1dfa1b86f1292ad41f69589dba5bcbb2b6bc57a8
tree822efc80815a6e9fc996ef88a48d887dc37b3652
parent82f3a1284c3fe5313075e60e9ac3f613a55edfae
NFSv4: pnfs_roc() must use cred_fscmp() to compare creds

commit 387122478775be5d9816c34aa29de53d0b926835 upstream.

When comparing two 'struct cred' for equality w.r.t. behaviour under
filesystem access, we need to use cred_fscmp().

Fixes: a52458b48af1 ("NFS/NFSD/SUNRPC: replace generic creds with 'struct cred'.")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/pnfs.c