summaryrefslogtreecommitdiffstats
path: root/qga/service-win32.c
Commit message (Collapse)AuthorAgeFilesLines
* qga: escape cmdline args when registering win32 service (CVE-2013-2231)Laszlo Ersek2013-07-251-5/+74
| | | | | | | Reported-by: Lev Veyde <lveyde@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
* ga_install_service(): nest error paths more idiomaticallyLaszlo Ersek2013-07-251-10/+12
| | | | | | | Acked-by: Michael Roth <mdroth@linux.vnet.ibm.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
* qga/service-win32.c: diagnostic output should go to stderrLaszlo Ersek2013-07-251-3/+3
| | | | | | | Acked-by: Michael Roth <mdroth@linux.vnet.ibm.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
* qga: save state directory in ga_install_service()Laszlo Ersek2013-05-301-1/+5
| | | | | | | | If the user selects a non-default state directory at service installation time, we should remember it in the registered service. Signed-off-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
* qga: remove undefined behavior in ga_install_service()Laszlo Ersek2013-05-301-8/+11
| | | | | | | We shouldn't snprintf() from a buffer to the same buffer. Signed-off-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
* qga: cast to int for DWORD typeLei Li2013-03-111-1/+1
| | | | | | | | | | | This patch fixes a compiler warning when cross-build: qga/service-win32.c: In function 'printf_win_error': qga/service-win32.c:32:5: warning: format '%d' expects argument of type 'int', but argument 3 has type 'DWORD' [-Wformat] Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
* qemu-ga: add Windows service integrationMichael Roth2012-02-231-0/+114
This allows qemu-ga to function as a Windows service: - to install the service (will auto-start on boot): qemu-ga --service install - to start the service: net start qemu-ga - to stop the service: net stop qemu-ga - to uninstall service: qemu-ga --service uninstall Original patch by Gal Hammer <ghammer@redhat.com>
OpenPOWER on IntegriCloud