diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-18 18:32:44 -0400 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-18 18:32:44 -0400 | 
| commit | 161fb0cf5c7e94cd0490e4bd04edcf1e24d1d288 (patch) | |
| tree | 38b0da03ce66f053e8cfed6c081c62aef22a544d /net/sunrpc/auth_generic.c | |
| parent | b8291ad07a7f3b5b990900f0001198ac23ba893e (diff) | |
| parent | b4528762ca92261c6ed3f03e76adeb1dc587aacb (diff) | |
Merge branch 'hotfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6
* 'hotfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6:
  SUNRPC: AUTH_SYS "machine creds" shouldn't use negative valued uid/gid
  nfs: make nfs4_drop_state_owner() static
  nfs: path_{get,put}() cleanups
  nfs: replace remaining __FUNCTION__ occurrences
  nfs/lsm: make NFSv4 set LSM mount options
  NFSv4: Check the return value of decode_compound_hdr_arg()
  nfs: fix race in nfs_dirty_request
  NFS: Ensure that 'noac' and/or 'actimeo=0' turn off attribute caching
Diffstat (limited to 'net/sunrpc/auth_generic.c')
| -rw-r--r-- | net/sunrpc/auth_generic.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sunrpc/auth_generic.c b/net/sunrpc/auth_generic.c index d927d9f57412..744b79fdcb19 100644 --- a/net/sunrpc/auth_generic.c +++ b/net/sunrpc/auth_generic.c  | |||
| @@ -17,8 +17,8 @@ | |||
| 17 | # define RPCDBG_FACILITY RPCDBG_AUTH | 17 | # define RPCDBG_FACILITY RPCDBG_AUTH | 
| 18 | #endif | 18 | #endif | 
| 19 | 19 | ||
| 20 | #define RPC_ANONYMOUS_USERID ((uid_t)-2) | 20 | #define RPC_MACHINE_CRED_USERID ((uid_t)0) | 
| 21 | #define RPC_ANONYMOUS_GROUPID ((gid_t)-2) | 21 | #define RPC_MACHINE_CRED_GROUPID ((gid_t)0) | 
| 22 | 22 | ||
| 23 | struct generic_cred { | 23 | struct generic_cred { | 
| 24 | struct rpc_cred gc_base; | 24 | struct rpc_cred gc_base; | 
| @@ -44,8 +44,8 @@ EXPORT_SYMBOL_GPL(rpc_lookup_cred); | |||
| 44 | struct rpc_cred *rpc_lookup_machine_cred(void) | 44 | struct rpc_cred *rpc_lookup_machine_cred(void) | 
| 45 | { | 45 | { | 
| 46 | struct auth_cred acred = { | 46 | struct auth_cred acred = { | 
| 47 | .uid = RPC_ANONYMOUS_USERID, | 47 | .uid = RPC_MACHINE_CRED_USERID, | 
| 48 | .gid = RPC_ANONYMOUS_GROUPID, | 48 | .gid = RPC_MACHINE_CRED_GROUPID, | 
| 49 | .machine_cred = 1, | 49 | .machine_cred = 1, | 
| 50 | }; | 50 | }; | 
| 51 | 51 | ||
