qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] vl.c: disallow command line fw cfg without opt/
@ 2016-03-15 13:55 Michael S. Tsirkin
  2016-03-15 14:14 ` Paolo Bonzini
  0 siblings, 1 reply; 12+ messages in thread
From: Michael S. Tsirkin @ 2016-03-15 13:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini, Gerd Hoffmann, Corey Minyard

Allowing arbitary file names on command line is setting us up for
failure: future guests will look for a specific QEMU-specified name and
will get confused finding a user file there.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 vl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/vl.c b/vl.c
index 7a28982..5654af6 100644
--- a/vl.c
+++ b/vl.c
@@ -2321,6 +2321,7 @@ static int parse_fw_cfg(void *opaque, QemuOpts *opts, Error **errp)
     if (strncmp(name, "opt/", 4) != 0) {
-        error_report("warning: externally provided fw_cfg item names "
-                     "should be prefixed with \"opt/\"");
+        error_report("externally provided fw_cfg item names "
+                     "must be prefixed with \"opt/\"");
+        return -1;
     }
     if (nonempty_str(str)) {
         size = strlen(str); /* NUL terminator NOT included in fw_cfg blob */
-- 
MST

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-03-17  1:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-15 13:55 [Qemu-devel] [PATCH] vl.c: disallow command line fw cfg without opt/ Michael S. Tsirkin
2016-03-15 14:14 ` Paolo Bonzini
2016-03-15 14:25   ` Gerd Hoffmann
2016-03-15 14:27     ` Michael S. Tsirkin
2016-03-15 14:25   ` Michael S. Tsirkin
2016-03-15 14:46     ` Gerd Hoffmann
2016-03-15 14:54       ` Michael S. Tsirkin
2016-03-15 15:03         ` Gerd Hoffmann
2016-03-15 15:05           ` Michael S. Tsirkin
2016-03-15 14:54     ` Paolo Bonzini
2016-03-15 14:58       ` Michael S. Tsirkin
2016-03-17  1:31         ` Corey Minyard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).