Merge branch 'ima-buffer-measurement-changes-v4' into next-integrity
authorMimi Zohar <zohar@linux.ibm.com>
Fri, 23 Jul 2021 13:39:52 +0000 (09:39 -0400)
committerMimi Zohar <zohar@linux.ibm.com>
Fri, 23 Jul 2021 17:37:19 +0000 (13:37 -0400)
commite37be5343ae2b9419aea1442b07e5d2428b437b4
tree46966a8fd69ed70c7223b0c044f5244fddaef4ce
parenta32ad90426a9c8eb3915eed26e08ce133bd9e0da
parentca3c9bdb101d9b9eb3ed8a85cc0fe55915ba49de
Merge branch 'ima-buffer-measurement-changes-v4' into next-integrity

Based on cover letter "ima: Provide more info about buffer measurement":

Providing more information about buffer measurements requires
modification of the existing functions ima_measure_critical_data()
and process_buffer_measurement().  Unlike for file measurements,
there is no integrity_iint_cache structure for storing and retrieving
buffer measurements.

With these changes, kernel subsystems relying on IMA to measure
critical data don't have to duplicate the function to calculate the
buffer digest but, instead, can get directly the one that IMA would
insert, depending on the policy, in the new measurement list entry.