Don't skip first argument in Linux kernel command line

Since 429:664e696da669, tboot doesn't skip the first argument of a
given command line any more. Consequently, it shouldn't be skipped
either when passed to the kernel in expand_linux_image().


changeset:   434:b0bf3985ec93
user:        Martin Wilck <martin.wi...@ts.fujitsu.com>
date:        Tue Feb 23 14:50:16 2016 +0100
files:       tboot/common/linux.c
description:
Don't skip first argument in Linux kernel command line

Since 429:664e696da669, tboot doesn't skip the first argument of a
given command line any more. Condequently, it shoudldn't be skipped
either when passed to the kernel in expand_linux_image().


diff -r 562a62118a72 -r b0bf3985ec93 tboot/common/linux.c
--- a/tboot/common/linux.c	Tue Nov 03 14:57:03 2015 -0800
+++ b/tboot/common/linux.c	Tue Feb 23 14:50:16 2016 +0100
@@ -302,7 +302,7 @@
            (unsigned long)(real_mode_base + real_mode_size));
 
     /* copy cmdline */
-    const char *kernel_cmdline = skip_filename(get_cmdline(g_ldr_ctx));
+    const char *kernel_cmdline = get_cmdline(g_ldr_ctx);
 
     printk(TBOOT_INFO"Linux cmdline placed in header: ");
     printk_long(kernel_cmdline);

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
tboot-devel mailing list
tboot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tboot-devel

Reply via email to