projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d2e88e
)
SUNRPC: AUTH_SYS "machine creds" shouldn't use negative valued uid/gid
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Sun, 11 May 2008 19:18:51 +0000
(12:18 -0700)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Sun, 18 May 2008 18:18:27 +0000
(14:18 -0400)
Apparently this causes Solaris 10 servers to refuse our NFSv4 SETCLIENTID
calls. Fall back to root creds for now, since most servers that care are
very likely to have root squashing enabled.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/auth_generic.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/auth_generic.c
b/net/sunrpc/auth_generic.c
index d927d9f574121f94d9477cda3670e960f8f147c7..744b79fdcb19dac256b1dea5b26dc6e87f208f07 100644
(file)
--- a/
net/sunrpc/auth_generic.c
+++ b/
net/sunrpc/auth_generic.c
@@
-17,8
+17,8
@@
# define RPCDBG_FACILITY RPCDBG_AUTH
#endif
-#define RPC_
ANONYMOUS_USERID ((uid_t)-2
)
-#define RPC_
ANONYMOUS_GROUPID ((gid_t)-2
)
+#define RPC_
MACHINE_CRED_USERID ((uid_t)0
)
+#define RPC_
MACHINE_CRED_GROUPID ((gid_t)0
)
struct generic_cred {
struct rpc_cred gc_base;
@@
-44,8
+44,8
@@
EXPORT_SYMBOL_GPL(rpc_lookup_cred);
struct rpc_cred *rpc_lookup_machine_cred(void)
{
struct auth_cred acred = {
- .uid = RPC_
ANONYMOUS
_USERID,
- .gid = RPC_
ANONYMOUS
_GROUPID,
+ .uid = RPC_
MACHINE_CRED
_USERID,
+ .gid = RPC_
MACHINE_CRED
_GROUPID,
.machine_cred = 1,
};