1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * nfsd-specific authentication stuff. 4 * 5 * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de> 6 */ 7 8 #ifndef LINUX_NFSD_AUTH_H 9 #define LINUX_NFSD_AUTH_H 10 11 struct user_namespace; 12 struct svc_export; 13 struct svc_rqst; 14 15 /* 16 * Set the current process's fsuid/fsgid etc to those of the NFS 17 * client user 18 */ 19 int nfsd_setuser(struct svc_cred *cred, struct svc_export *exp); 20 21 struct user_namespace *nfsd_user_namespace(const struct svc_rqst *rqstp); 22 23 #endif /* LINUX_NFSD_AUTH_H */ 24