mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 21:21:41 +00:00
9fd45c16f3
nfsd_permission(), exp_rdonly(), nfsd_setuser(), and nfsexp_flags() only ever need the cred out of rqstp, so pass it explicitly instead of the whole rqstp. This makes the interfaces cleaner. Signed-off-by: NeilBrown <neilb@suse.de> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
18 lines
385 B
C
18 lines
385 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* nfsd-specific authentication stuff.
|
|
*
|
|
* Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de>
|
|
*/
|
|
|
|
#ifndef LINUX_NFSD_AUTH_H
|
|
#define LINUX_NFSD_AUTH_H
|
|
|
|
/*
|
|
* Set the current process's fsuid/fsgid etc to those of the NFS
|
|
* client user
|
|
*/
|
|
int nfsd_setuser(struct svc_cred *cred, struct svc_export *exp);
|
|
|
|
#endif /* LINUX_NFSD_AUTH_H */
|