Skip to content

open-source-cooperative/linux-keyutils-keyring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linux-kernel-keystore

cargo-badge-lib docs-badge-lib license-badge rust-version-badge build

This library provides a credential store for use with the keyring crate that uses the Linux key-management facility (keyctl).

Basic Usage

To use linux-kernel-keystore, first add this to your Cargo.toml:

[dependencies]
linux-kernel-keystore = "0.1"

To make this keystore the default for creation of keyring entries, construct a builder and use set_default_credential_builder:

use linux_kernel_keystore::KeyutilsCredentialBuilder;

fn main() {
    // Set keyutils backend as the default store
    keyring::set_default_credential_builder(KeyutilsCredentialBuilder::new());
}

For more information please view the full documentation. There is also a small example program in the examples directory.

License

Licensed under either of the following at your discretion:

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

About

A keyring-compatible credential store based on linux-keyutils

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors 2

  •  
  •  

Languages