mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
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 <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
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 <[email protected]>
|
|
*/
|
|
|
|
#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 */
|