提交 00401ff7 编写于 作者: J Jeff Layton 提交者: Steve French

cifs: after upcalling for krb5 creds, invalidate key rather than revoking it

Calling key_revoke here isn't ideal as further requests for the key will
end up returning -EKEYREVOKED until it gets purged from the cache. What we
really intend here is to force a new upcall on the next request_key.

Cc: David Howells <dhowells@redhat.com>
Signed-off-by: NJeff Layton <jlayton@redhat.com>
Signed-off-by: NSteve French <smfrench@gmail.com>
上级 0ec4f431
...@@ -938,7 +938,7 @@ CIFS_SessSetup(unsigned int xid, struct cifs_ses *ses, ...@@ -938,7 +938,7 @@ CIFS_SessSetup(unsigned int xid, struct cifs_ses *ses,
ssetup_exit: ssetup_exit:
if (spnego_key) { if (spnego_key) {
key_revoke(spnego_key); key_invalidate(spnego_key);
key_put(spnego_key); key_put(spnego_key);
} }
kfree(str_area); kfree(str_area);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册