Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357825
b: refs/heads/master
c: e097258
h: refs/heads/master
i:
  357823: 90570d1
v: v3
  • Loading branch information
Eric W. Biederman committed Feb 13, 2013
1 parent 2aed003 commit 36096f8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 65e10f6d0ab09ba95c2eb07cac43208692cf670e
refs/heads/master: e097258f2eb4a91e7389ae69a3c87df111637a3f
6 changes: 0 additions & 6 deletions trunk/fs/nfsd/auth.h
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
/*
* nfsd-specific authentication stuff.
* uid/gid mapping not yet implemented.
*
* Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de>
*/

#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
Expand Down
4 changes: 2 additions & 2 deletions trunk/fs/nfsd/nfs3xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ encode_fattr3(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp,
*p++ = htonl(nfs3_ftypes[(stat->mode & S_IFMT) >> 12]);
*p++ = htonl((u32) stat->mode);
*p++ = htonl((u32) stat->nlink);
*p++ = htonl((u32) nfsd_ruid(rqstp, stat->uid));
*p++ = htonl((u32) nfsd_rgid(rqstp, stat->gid));
*p++ = htonl((u32) stat->uid);
*p++ = htonl((u32) stat->gid);
if (S_ISLNK(stat->mode) && stat->size > NFS3_MAXPATHLEN) {
p = xdr_encode_hyper(p, (u64) NFS3_MAXPATHLEN);
} else {
Expand Down
4 changes: 2 additions & 2 deletions trunk/fs/nfsd/nfsxdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp,
*p++ = htonl(nfs_ftypes[type >> 12]);
*p++ = htonl((u32) stat->mode);
*p++ = htonl((u32) stat->nlink);
*p++ = htonl((u32) nfsd_ruid(rqstp, stat->uid));
*p++ = htonl((u32) nfsd_rgid(rqstp, stat->gid));
*p++ = htonl((u32) stat->uid);
*p++ = htonl((u32) stat->gid);

if (S_ISLNK(type) && stat->size > NFS_MAXPATHLEN) {
*p++ = htonl(NFS_MAXPATHLEN);
Expand Down

0 comments on commit 36096f8

Please sign in to comment.