ima_sign

Function ima_sign 

Source
pub fn ima_sign(repo: &Repo, ostree_ref: &str, opts: &ImaOpts) -> Result<String>
Expand description

Given an OSTree commit and an IMA configuration, generate a new commit object with IMA signatures.

The generated commit object will inherit all metadata from the existing commit object such as version, etc.

This function does not create an ostree transaction; it’s recommended to use outside the call to this function.