NFSv4: Reintroduce machine creds
We need to try to ensure that we always use the same credentials whenever we re-establish the clientid on the server. If not, the server won't recognise that we're the same client, and so may not allow us to recover state. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
78ea323be6
commit
7c67db3a8a
6 changed files with 47 additions and 3 deletions
|
@ -26,6 +26,7 @@ struct auth_cred {
|
|||
uid_t uid;
|
||||
gid_t gid;
|
||||
struct group_info *group_info;
|
||||
unsigned char machine_cred : 1;
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -130,6 +131,7 @@ void __exit rpcauth_remove_module(void);
|
|||
void __exit rpc_destroy_generic_auth(void);
|
||||
|
||||
struct rpc_cred * rpc_lookup_cred(void);
|
||||
struct rpc_cred * rpc_lookup_machine_cred(void);
|
||||
int rpcauth_register(const struct rpc_authops *);
|
||||
int rpcauth_unregister(const struct rpc_authops *);
|
||||
struct rpc_auth * rpcauth_create(rpc_authflavor_t, struct rpc_clnt *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue