Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list
From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2016-08-10 03:41:14
Also in:
linuxppc-dev, lkml
Thiago Jung Bauermann [off-list ref] writes:
Am Dienstag, 09 August 2016, 09:01:13 schrieb Mimi Zohar:quoted
On Tue, 2016-08-09 at 20:59 +1000, Michael Ellerman wrote:quoted
Mimi Zohar [off-list ref] writes:quoted
diff --git a/security/integrity/ima/ima.hb/security/integrity/ima/ima.h index b5728da..84e8d36 100644--- a/security/integrity/ima/ima.h +++ b/security/integrity/ima/ima.h@@ -102,6 +102,13 @@ struct ima_queue_entry { }; extern struct list_head ima_measurements; /* list of allmeasurementsquoted
quoted
quoted
*/ +/* Some details preceding the binary serialized measurement list */ +struct ima_kexec_hdr { + unsigned short version; + unsigned long buffer_size; + unsigned long count; +} __packed; +Am I understanding it correctly that this structure is passed between kernels?Yes, the header prefixes the measurement list, which is being passed on the same computer to the next kernel. Could the architecture (eg. LE/BE) change between soft re-boots?Yes. I am able to boot a BE kernel from an LE kernel with my patches. Whether we want to support that or not is another question...
Yes you must support that. BE -> LE and vice versa. You should also consider the possibility that the next kernel is not Linux. cheers _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec