mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-14 12:37:32 +00:00
SUNRPC: don't map EKEYEXPIRED to EACCES in call_refreshresult
The NFS layer needs to know when a key has expired. This change also returns -EKEYEXPIRED to the application, and the informative "Key has expired" error message is displayed. The user then knows that credential renewal is required. Signed-off-by: Andy Adamson <andros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
280ebcf97c
commit
f1ff0c27fd
1 changed files with 1 additions and 1 deletions
|
@ -1408,9 +1408,9 @@ call_refreshresult(struct rpc_task *task)
|
||||||
return;
|
return;
|
||||||
case -ETIMEDOUT:
|
case -ETIMEDOUT:
|
||||||
rpc_delay(task, 3*HZ);
|
rpc_delay(task, 3*HZ);
|
||||||
case -EKEYEXPIRED:
|
|
||||||
case -EAGAIN:
|
case -EAGAIN:
|
||||||
status = -EACCES;
|
status = -EACCES;
|
||||||
|
case -EKEYEXPIRED:
|
||||||
if (!task->tk_cred_retry)
|
if (!task->tk_cred_retry)
|
||||||
break;
|
break;
|
||||||
task->tk_cred_retry--;
|
task->tk_cred_retry--;
|
||||||
|
|
Loading…
Reference in a new issue