keyutils
In-kernel key management utilities
- Provided by: keyutils (Version: 1.5.9-9.2ubuntu2.1)
- Report a bug
In-kernel key management utilities
The keyutils package is a library and a set of utilities for accessing the kernel keyrings facility.
A header file is supplied to provide the definitions and declarations required to access the library:
To link with the library, the following:
should be specified to the linker.
Three system calls are provided:
See the add_key(2), request_key(2), and keyctl(2) manual pages for more information.
The keyctl() wrappers are listed on the keyctl(3) manual page.
A program is provided to interact with the kernel facility by a number of subcommands, e.g.:
See the keyctl(1) manual page for information on that.
The kernel has the ability to upcall to userspace to fabricate new keys. This can be triggered by request_key(), but userspace is better off using add_key() instead if it possibly can.
The upcalling mechanism is usually routed via the:
program. What this does with any particular key is configurable in:
See the request-key.conf(5) and the request-key(8) manual pages for more information.
keyrings(7),
pam_keyinit(8),
process-keyring(7),
session-keyring(7),
thread-keyring(7),
user-keyring(7),
user-session-keyring(7),
persistent-keyring(7)