• Thiago Jung Bauermann's avatar
    powerpc: ima: get the kexec buffer passed by the previous kernel · 467d2782
    Thiago Jung Bauermann authored
    Patch series "ima: carry the measurement list across kexec", v8.
    
    The TPM PCRs are only reset on a hard reboot.  In order to validate a
    TPM's quote after a soft reboot (eg.  kexec -e), the IMA measurement
    list of the running kernel must be saved and then restored on the
    subsequent boot, possibly of a different architecture.
    
    The existing securityfs binary_runtime_measurements file conveniently
    provides a serialized format of the IMA measurement list.  This patch
    set serializes the measurement list in this format and restores it.
    
    Up to now, the binary_runtime_measurements was defined as architecture
    native format.  The assumption being that userspace could and would
    handle any architecture conversions.  With the ability of carrying the
    measurement list across kexec, possibly from one architecture to a
    different one, the per boot architecture information is lost and with it
    the ability of recalculating the template digest hash.  To resolve th...
    467d2782
Kconfig 23.2 KB