All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1775366] [NEW] [Feature request] qemu-ga - Allow unexpected parameter
@ 2018-06-06  9:07 Jacob Bang
  2018-06-06 19:40 ` [Qemu-devel] [Bug 1775366] " John Snow
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jacob Bang @ 2018-06-06  9:07 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

It whould be nice if the qemu-ga allowed received messages to contain
fields which is not part of the spec. In my example I have a host which
sends the following request:

{"execute":"guest-exec","arguments":{"path":"prl_nettool","capture-
output":true,"execute-in-shell":false,"arg":[...]}}

Right now this request is rejected with the following error:

{"error": {"class": "GenericError", "desc": "Parameter 'execute-in-
shell' is unexpected"}}

My situation is the hosting provider I use does have some customized
solution which sends some extra arguments. I have manually patched my
qemu-ga so it accepts the "execute-in-shell" parameter but I don't think
this should be necessary.

Instead of "Error" it should just be a "warning" returned to the user of
qemu-ga but the call should still be executed.

** Affects: qemu
     Importance: Undecided
         Status: New


** Tags: qemu-ga

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1775366

Title:
   [Feature request] qemu-ga - Allow unexpected parameter

Status in QEMU:
  New

Bug description:
  It whould be nice if the qemu-ga allowed received messages to contain
  fields which is not part of the spec. In my example I have a host
  which sends the following request:

  {"execute":"guest-exec","arguments":{"path":"prl_nettool","capture-
  output":true,"execute-in-shell":false,"arg":[...]}}

  Right now this request is rejected with the following error:

  {"error": {"class": "GenericError", "desc": "Parameter 'execute-in-
  shell' is unexpected"}}

  My situation is the hosting provider I use does have some customized
  solution which sends some extra arguments. I have manually patched my
  qemu-ga so it accepts the "execute-in-shell" parameter but I don't
  think this should be necessary.

  Instead of "Error" it should just be a "warning" returned to the user
  of qemu-ga but the call should still be executed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1775366/+subscriptions

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

* [Qemu-devel] [Bug 1775366] Re: [Feature request] qemu-ga - Allow unexpected parameter
  2018-06-06  9:07 [Qemu-devel] [Bug 1775366] [NEW] [Feature request] qemu-ga - Allow unexpected parameter Jacob Bang
@ 2018-06-06 19:40 ` John Snow
  2018-06-06 21:07 ` Jacob Bang
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: John Snow @ 2018-06-06 19:40 UTC (permalink / raw)
  To: qemu-devel

This sounds an awful lot like your hosting provider expects you to be
using a specialized version of qemu-ga which you are not using.

It is my opinion that it's dangerous for a client to accept partial
commands and try to execute them anyway, as those ignored parameters
drastically change the semantics of various commands.

We don't know what we don't know, so this doesn't sound safe.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1775366

Title:
   [Feature request] qemu-ga - Allow unexpected parameter

Status in QEMU:
  New

Bug description:
  It whould be nice if the qemu-ga allowed received messages to contain
  fields which is not part of the spec. In my example I have a host
  which sends the following request:

  {"execute":"guest-exec","arguments":{"path":"prl_nettool","capture-
  output":true,"execute-in-shell":false,"arg":[...]}}

  Right now this request is rejected with the following error:

  {"error": {"class": "GenericError", "desc": "Parameter 'execute-in-
  shell' is unexpected"}}

  My situation is the hosting provider I use does have some customized
  solution which sends some extra arguments. I have manually patched my
  qemu-ga so it accepts the "execute-in-shell" parameter but I don't
  think this should be necessary.

  Instead of "Error" it should just be a "warning" returned to the user
  of qemu-ga but the call should still be executed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1775366/+subscriptions

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

* [Qemu-devel] [Bug 1775366] Re: [Feature request] qemu-ga - Allow unexpected parameter
  2018-06-06  9:07 [Qemu-devel] [Bug 1775366] [NEW] [Feature request] qemu-ga - Allow unexpected parameter Jacob Bang
  2018-06-06 19:40 ` [Qemu-devel] [Bug 1775366] " John Snow
@ 2018-06-06 21:07 ` Jacob Bang
  2018-06-07 10:14 ` Thomas Huth
  2018-06-07 10:28 ` Daniel Berrange
  3 siblings, 0 replies; 5+ messages in thread
From: Jacob Bang @ 2018-06-06 21:07 UTC (permalink / raw)
  To: qemu-devel

I see you point. Just close this issue.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1775366

Title:
   [Feature request] qemu-ga - Allow unexpected parameter

Status in QEMU:
  New

Bug description:
  It whould be nice if the qemu-ga allowed received messages to contain
  fields which is not part of the spec. In my example I have a host
  which sends the following request:

  {"execute":"guest-exec","arguments":{"path":"prl_nettool","capture-
  output":true,"execute-in-shell":false,"arg":[...]}}

  Right now this request is rejected with the following error:

  {"error": {"class": "GenericError", "desc": "Parameter 'execute-in-
  shell' is unexpected"}}

  My situation is the hosting provider I use does have some customized
  solution which sends some extra arguments. I have manually patched my
  qemu-ga so it accepts the "execute-in-shell" parameter but I don't
  think this should be necessary.

  Instead of "Error" it should just be a "warning" returned to the user
  of qemu-ga but the call should still be executed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1775366/+subscriptions

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

* [Qemu-devel] [Bug 1775366] Re: [Feature request] qemu-ga - Allow unexpected parameter
  2018-06-06  9:07 [Qemu-devel] [Bug 1775366] [NEW] [Feature request] qemu-ga - Allow unexpected parameter Jacob Bang
  2018-06-06 19:40 ` [Qemu-devel] [Bug 1775366] " John Snow
  2018-06-06 21:07 ` Jacob Bang
@ 2018-06-07 10:14 ` Thomas Huth
  2018-06-07 10:28 ` Daniel Berrange
  3 siblings, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2018-06-07 10:14 UTC (permalink / raw)
  To: qemu-devel

I agree with John, accepting commands that have not fully been
understood is just too dangerous. So closing this as Won't-Fix.

** Changed in: qemu
       Status: New => Won't Fix

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1775366

Title:
   [Feature request] qemu-ga - Allow unexpected parameter

Status in QEMU:
  Won't Fix

Bug description:
  It whould be nice if the qemu-ga allowed received messages to contain
  fields which is not part of the spec. In my example I have a host
  which sends the following request:

  {"execute":"guest-exec","arguments":{"path":"prl_nettool","capture-
  output":true,"execute-in-shell":false,"arg":[...]}}

  Right now this request is rejected with the following error:

  {"error": {"class": "GenericError", "desc": "Parameter 'execute-in-
  shell' is unexpected"}}

  My situation is the hosting provider I use does have some customized
  solution which sends some extra arguments. I have manually patched my
  qemu-ga so it accepts the "execute-in-shell" parameter but I don't
  think this should be necessary.

  Instead of "Error" it should just be a "warning" returned to the user
  of qemu-ga but the call should still be executed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1775366/+subscriptions

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

* [Qemu-devel] [Bug 1775366] Re: [Feature request] qemu-ga - Allow unexpected parameter
  2018-06-06  9:07 [Qemu-devel] [Bug 1775366] [NEW] [Feature request] qemu-ga - Allow unexpected parameter Jacob Bang
                   ` (2 preceding siblings ...)
  2018-06-07 10:14 ` Thomas Huth
@ 2018-06-07 10:28 ` Daniel Berrange
  3 siblings, 0 replies; 5+ messages in thread
From: Daniel Berrange @ 2018-06-07 10:28 UTC (permalink / raw)
  To: qemu-devel

BTW, if you have any friendly contact with the your hosting provider,
please encourage them to contribute any enhancements they have back to
QEMU. It is highly desirable to *NOT* have hosting providers needing a
fork of qemu-ga, as that ruins ability to run standard disk images, as
you've found.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1775366

Title:
   [Feature request] qemu-ga - Allow unexpected parameter

Status in QEMU:
  Won't Fix

Bug description:
  It whould be nice if the qemu-ga allowed received messages to contain
  fields which is not part of the spec. In my example I have a host
  which sends the following request:

  {"execute":"guest-exec","arguments":{"path":"prl_nettool","capture-
  output":true,"execute-in-shell":false,"arg":[...]}}

  Right now this request is rejected with the following error:

  {"error": {"class": "GenericError", "desc": "Parameter 'execute-in-
  shell' is unexpected"}}

  My situation is the hosting provider I use does have some customized
  solution which sends some extra arguments. I have manually patched my
  qemu-ga so it accepts the "execute-in-shell" parameter but I don't
  think this should be necessary.

  Instead of "Error" it should just be a "warning" returned to the user
  of qemu-ga but the call should still be executed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1775366/+subscriptions

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

end of thread, other threads:[~2018-06-07 10:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-06  9:07 [Qemu-devel] [Bug 1775366] [NEW] [Feature request] qemu-ga - Allow unexpected parameter Jacob Bang
2018-06-06 19:40 ` [Qemu-devel] [Bug 1775366] " John Snow
2018-06-06 21:07 ` Jacob Bang
2018-06-07 10:14 ` Thomas Huth
2018-06-07 10:28 ` Daniel Berrange

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.