Struct keyutils::KeyManager
[−]
[src]
pub struct KeyManager { /* fields omitted */ }
A manager for a key to respond to instantiate a key request by the kernel.
Methods
impl KeyManager
[src]
fn instantiate(self, keyring: &Keyring, payload: &[u8]) -> Result<()>
Instantiate the key with the given payload.
fn reject(self, keyring: &Keyring, timeout: u32, error: Errno) -> Result<()>
Reject the key with the given error
. Requests for the key will fail until timeout
seconds have elapsed. This is to prevent a denial-of-service by requesting a non-existant
key repeatedly. The requester must have write
permission on the keyring.
TODO: Accept SpecialKeyring
values here. They are special in that they refer to the
requester's special keyring and not this one.
fn negate(self, keyring: &Keyring, timeout: u32) -> Result<()>
Reject the key with ENOKEY
.