[krbdev.mit.edu #9254] git commit
Greg Hudson via RT
rt at krbdev.mit.edu
Tue Nov 3 19:17:44 EST 2026
<URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=9254 >
Skip expired keys when iterating a KEYRING ccache
In krcc_next_cred(), if keyctl_read_alloc() fails with EKEYEXPIRED,
skip it and move on to the next key in the keyring. This can happen
if a credential in the cache expires before the whole cache expires,
because for a period of time after a key expires, the key still exists
in the keyring but cannot be accessed. Reported by Ao Shen.
(cherry picked from commit 2001f37638ae80da640a9c2e959ac666cdfa2ad7)
https://github.com/krb5/krb5/commit/d6100a84f392d6ee746b505b5ffdcbdf28c29ae4
Author: Greg Hudson <ghudson at mit.edu>
Commit: d6100a84f392d6ee746b505b5ffdcbdf28c29ae4
Branch: krb5-1.22
src/lib/krb5/ccache/cc_keyring.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
More information about the krb5-bugs
mailing list