diff options
| author | Nayna Jain <[email protected]> | 2019-10-30 23:31:30 -0400 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2019-11-12 12:25:50 +1100 |
| commit | e14555e3d0e9edfad0a6840c0152f71aba97e793 (patch) | |
| tree | 043793c6388f53a4efeac81e0b12242d3c083156 /tools/perf/scripts/python | |
| parent | 1917855f4e0658c313e280671ad87774dbfb7b24 (diff) | |
ima: Make process_buffer_measurement() generic
process_buffer_measurement() is limited to measuring the kexec boot
command line. This patch makes process_buffer_measurement() more
generic, allowing it to measure other types of buffer data (e.g.
blacklisted binary hashes or key hashes).
process_buffer_measurement() may be called directly from an IMA hook
or as an auxiliary measurement record. In both cases the buffer
measurement is based on policy. This patch modifies the function to
conditionally retrieve the policy defined PCR and template for the IMA
hook case.
Signed-off-by: Nayna Jain <[email protected]>
[[email protected]: added comment in process_buffer_measurement()]
Signed-off-by: Mimi Zohar <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions