From 392e8802486cb573b916e746010e141a75f507e6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 09:58:27 +0800 Subject: init android origin source code --- ANDROID_3.4.5/fs/nfsd/auth.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ANDROID_3.4.5/fs/nfsd/auth.h (limited to 'ANDROID_3.4.5/fs/nfsd/auth.h') diff --git a/ANDROID_3.4.5/fs/nfsd/auth.h b/ANDROID_3.4.5/fs/nfsd/auth.h new file mode 100644 index 00000000..78b3c0e9 --- /dev/null +++ b/ANDROID_3.4.5/fs/nfsd/auth.h @@ -0,0 +1,22 @@ +/* + * nfsd-specific authentication stuff. + * uid/gid mapping not yet implemented. + * + * Copyright (C) 1995, 1996 Olaf Kirch + */ + +#ifndef LINUX_NFSD_AUTH_H +#define LINUX_NFSD_AUTH_H + +#define nfsd_luid(rq, uid) ((u32)(uid)) +#define nfsd_lgid(rq, gid) ((u32)(gid)) +#define nfsd_ruid(rq, uid) ((u32)(uid)) +#define nfsd_rgid(rq, gid) ((u32)(gid)) + +/* + * Set the current process's fsuid/fsgid etc to those of the NFS + * client user + */ +int nfsd_setuser(struct svc_rqst *, struct svc_export *); + +#endif /* LINUX_NFSD_AUTH_H */ -- cgit