summaryrefslogtreecommitdiff
path: root/futility/kernel_blob.h
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2017-05-05 15:50:45 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-05-08 12:40:52 -0700
commiteab2668a1a549e15f549511075fb0c6a9a4f6353 (patch)
tree7e9269b56dd277e29535d45bb8de3fac4e75a59a /futility/kernel_blob.h
parentf3df71d44c66b442b63c14a54188b9d6d1ef250d (diff)
downloadvboot-eab2668a1a549e15f549511075fb0c6a9a4f6353.tar.gz
futility: Verify linux kernel signature
Verify the linux kernel signature on images before assuming they contain a linux kernel. This allows non-linux images on x86 to be left unmodified when signed. BUG=b:38040849 BRANCH=none TEST=sign a multiboot kernel image that remains unmodified, and ensure that x86 linux kernels are still updated properly and can still be booted. Change-Id: Ib7ba2d59ebe6413ab355aa7c0a9ee2e32c3ed98a Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: https://chromium-review.googlesource.com/497932 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'futility/kernel_blob.h')
-rw-r--r--futility/kernel_blob.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/futility/kernel_blob.h b/futility/kernel_blob.h
index ab1c82fd..1ee4ea7b 100644
--- a/futility/kernel_blob.h
+++ b/futility/kernel_blob.h
@@ -7,6 +7,9 @@
#ifndef VBOOT_REFERENCE_KERNEL_BLOB_H_
#define VBOOT_REFERENCE_KERNEL_BLOB_H_
+/* Linux vmlinuz header signature */
+#define VMLINUZ_HEADER_SIG 0x53726448
+
/* Maximum kernel command-line size */
#define CROS_CONFIG_SIZE 4096