Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1064)

Unified Diff: scripts/image_signing/ensure_secure_kernelparams.config

Issue 6253014: Add script to validate kernel params before we sign images (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: scripts/image_signing/ensure_secure_kernelparams.config
diff --git a/scripts/image_signing/ensure_secure_kernelparams.config b/scripts/image_signing/ensure_secure_kernelparams.config
new file mode 100755
index 0000000000000000000000000000000000000000..5c584a0c7788001040815d4cf2a80f58a74ffc0f
--- /dev/null
+++ b/scripts/image_signing/ensure_secure_kernelparams.config
@@ -0,0 +1,37 @@
+#!/bin/bash
+
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+#
+# COMMON
+#
+required_kparams_common=( quiet console=tty2 init=/sbin/init add_efi_memmap
+ boot=local rootwait ro noresume noswap i915.modeset=1
+ loglevel=1 cros_secure kern_guid=%U tpm_tis.force=1
+ tpm_tis.interrupts=0 root=/dev/dm-0
+ dm_verity.error_behavior=3 dm_verity.max_bios=-1
+ dm_verity.dev_wait=1 noinitrd )
+
+optional_kparams_common=( )
+
+# use "MAGIC_HASH" in place of the unpredictable sha1 hash, comparison
+# functions later take care of the rest....
+required_dmparams_common="vroot none ro,0 1740800 verity /dev/sd%D%P \
gauravsh 2011/01/26 22:55:57 comment about where do you get this parameter from
+/dev/sd%D%P 1740800 1 sha1 MAGIC_HASH"
+
+
+#
+# x86-mario
+#
+required_kparams_x86_mario=( ${required_kparams_common[@]} )
+optional_kparams_x86_mario=( ${optional_kparams_common[@]} )
+required_dmparams_x86_mario="$required_dmparams_common"
+
+#
+# x86-agz
+#
+required_kparams_x86_agz=( ${required_kparams_common[@]} )
+optional_kparams_x86_agz=( ${optional_kparams_common[@]} )
+required_dmparams_x86_agz="$required_dmparams_common"

Powered by Google App Engine
This is Rietveld 408576698