rust-keyutils
rust-keyutils copied to clipboard
Rust interface to the Linux keyring
Contrary to other keys, trusted-key implementation converts the payload into a hexadecimal ascii string: ``` Payload::Load { blob, options, } => format!("load {:x}{}", ByteBuf(blob), options), ``` But the payload is...
# Problem When running `cargo test` in threaded mode random tests fail with: `libc::EDQUOT` ie `Some("Disk quota exceeded")` It would be good to put a note about this somewhere (or...
I may be confused about what `Keyring::attach` is for, but it seems like using it to access the `UserSession` keyring fails ```rust let mut session_keyring = Keyring::attach(SpecialKeyring::UserSession)?; let mut key...
As far as I can tell inventing an invalid key id will just cause errors on future API calls, there is no way to trigger memory unsafety, so this function...
The truncate() method doesn't do anything if the "len" is greater than the current length, which is the case here. So instead, use the Vec.set_len method.
Linux 5.8 will have support for `keyctl(KEYCTL_WATCH_KEY)`. Bindings and tests would be good to have (likely need Rawhide to get testing going for now).