SUNRPC: don't map EKEYEXPIRED to EACCES in call_refreshresult
authorAndy Adamson <andros@netapp.com>
Wed, 14 Aug 2013 15:59:13 +0000 (11:59 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Nov 2013 18:42:15 +0000 (10:42 -0800)
commit94f32adc674b58aa26729ea6d526aa9d0809f3ed
treed44d0c7528c74ab53853da82c9b4218b85f55742
parentc015250cef8e61c1f32cecdcf36b286dcecbc419
SUNRPC: don't map EKEYEXPIRED to EACCES in call_refreshresult

commit f1ff0c27fd9987c59d707cd1a6b6c1fc3ae0a250 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/clnt.c