mathstuf / rust-keyutils

Rust interface to the Linux keyring
BSD 3-Clause "New" or "Revised" License
17 stars 9 forks source link

Fix race conditions in Keyring::read #28

Closed josephlr closed 5 years ago

josephlr commented 5 years ago

Actually fixes #21

It turns out most of the test issues were caused by the following race condition in Keyring::read:

We fix these issues by checking for ENOKEY when calling key.description() and skip that key.

Note: clippy is still failing, (resolved with #26)