Message ID | 20191113184658.2862-1-nramas@linux.microsoft.com (mailing list archive) |
---|---|
Headers | show |
Series | KEYS: Measure keys when they are created or updated | expand |
On Wed, 2019-11-13 at 10:46 -0800, Lakshmi Ramasubramanian wrote: > Keys created or updated in the system are currently not measured. > Therefore an attestation service, for instance, would not be able to > attest whether or not the trusted keys keyring(s), for instance, contain > only known good (trusted) keys. > > IMA measures system files, command line arguments passed to kexec, > boot aggregate, etc. It can be used to measure keys as well. > But there is no mechanism available in the kernel for IMA to > know when a key is created or updated. > > This change aims to address measuring keys created or updated > in the system: > > To achieve the above the following changes have been made: > > - Added a new IMA hook namely, ima_post_key_create_or_update, which > measures the key. This IMA hook is called from key_create_or_update > function. The key measurement can be controlled through IMA policy. > > A new IMA policy function KEY_CHECK has been added to measure keys. > > # measure keys loaded onto any keyring > measure func=KEY_CHECK When re-posting this patch set, please include the support for specifying the "keyrings=" policy option, as an additional patch. Mimi
On 11/13/2019 2:02 PM, Mimi Zohar wrote: > > When re-posting this patch set, please include the support for > specifying the "keyrings=" policy option, as an additional patch. > > Mimi Sure - will do. thanks, -lakshmi