summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/idmap.h
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2013-02-02 03:24:21 -0800
committerEric W. Biederman <ebiederm@xmission.com>2013-02-13 06:15:49 -0800
commit65e10f6d0ab09ba95c2eb07cac43208692cf670e (patch)
tree2028f6cdb6ba126ea5134e8b05490a7b2058ae16 /fs/nfsd/idmap.h
parentb5663898ec3fa7f1a58a9def9592be345bb173c2 (diff)
downloadlinux-65e10f6d0ab09ba95c2eb07cac43208692cf670e.tar.gz
linux-65e10f6d0ab09ba95c2eb07cac43208692cf670e.tar.bz2
linux-65e10f6d0ab09ba95c2eb07cac43208692cf670e.zip
nfsd: Convert idmap to use kuids and kgids
Convert nfsd_map_name_to_uid to return a kuid_t value. Convert nfsd_map_name_to_gid to return a kgid_t value. Convert nfsd_map_uid_to_name to take a kuid_t parameter. Convert nfsd_map_gid_to_name to take a kgid_t paramater. Cc: "J. Bruce Fields" <bfields@fieldses.org> Cc: Trond Myklebust <Trond.Myklebust@netapp.com> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/nfsd/idmap.h')
-rw-r--r--fs/nfsd/idmap.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/nfsd/idmap.h b/fs/nfsd/idmap.h
index 9d513efc01ba..bf95f6b817a4 100644
--- a/fs/nfsd/idmap.h
+++ b/fs/nfsd/idmap.h
@@ -54,9 +54,9 @@ static inline void nfsd_idmap_shutdown(struct net *net)
}
#endif
-__be32 nfsd_map_name_to_uid(struct svc_rqst *, const char *, size_t, __u32 *);
-__be32 nfsd_map_name_to_gid(struct svc_rqst *, const char *, size_t, __u32 *);
-int nfsd_map_uid_to_name(struct svc_rqst *, __u32, char *);
-int nfsd_map_gid_to_name(struct svc_rqst *, __u32, char *);
+__be32 nfsd_map_name_to_uid(struct svc_rqst *, const char *, size_t, kuid_t *);
+__be32 nfsd_map_name_to_gid(struct svc_rqst *, const char *, size_t, kgid_t *);
+int nfsd_map_uid_to_name(struct svc_rqst *, kuid_t, char *);
+int nfsd_map_gid_to_name(struct svc_rqst *, kgid_t, char *);
#endif /* LINUX_NFSD_IDMAP_H */