Concurrency issue between krb5_cc_retrieve_cred and krb5_cc_store_cred

Sam Hartman hartmans at MIT.EDU
Tue May 5 09:27:50 EDT 2009

Do you have any thoughts on the fix?
Approaches to try for me seem to include:

* Lock, reopen rw, unlock  if we get EBADF
* Clear the openclose flag and try again if we get EBADF
* Lock around the entire sequential operation in retrieve 

One factor to consider is difference between Windows and Unix locking semantics.

More information about the krbdev mailing list