History | View | Annotate | Download (33.3 kB)
qemu-ga: Add interface to traverse the qmp command list by QmpCommand
In the original code, qmp_get_command_list is used to constructa list of all commands' name. To get the information of all qgacommands, it traverses the name list and search the command info...
qemu-ga: Install Windows VSS provider on `qemu-ga -s install'
Register QGA VSS provider library into Windows when qemu-ga is installed asWindows service ('-s install' option). It is deregistered when the serviceis uninstalled ('-s uninstall' option).
Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama@hds.com>...
qga: determine default state dir and pidfile dynamically
No effective change on POSIX, but on Win32 the defaults come from theenvironment / session.
Since commit 39097daf ("qemu-ga: use key-value store to avoid recycling fdhandles after restart") we've relied on the state directory for the fd...
qga: create state directory on win32
On Win32 the local state directory is application specific and users mightexpect qemu-ga to create it automatically.
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()
If the user selects a non-default state directory at service installationtime, we should remember it in the registered service.
qga: set umask 0077 when daemonizing (CVE-2013-2007)
The qemu guest agent creates a bunch of files with insecure permissionswhen started in daemon mode. For example:
rw-rw-rw 1 root root /var/log/qemu-ga.log rw-rw-rw 1 root root /var/run/qga.state...
qemu-ga: ga_get_fd_handle(): abort if fd_counter overflows
Today we reset fd_counter if it wraps, but it's better to abort()instead, as fd_counter should never reach INT64_MAX.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>...
qga/main.c: Don't use g_key_file_get/set_int64
These functions don't exist until glib version 2.26. QEMU is currently onlymandating glib 2.12.
This patch replaces the functions with g_key_file_get/set_integer.
Unbreaks the build on Ubuntu 10.04 and RHEL 5.6....
qemu-ga: use key-value store to avoid recycling fd handles after restart
Hosts hold on to handles provided by guest-file-open for periods that canspan beyond the life of the qemu-ga process that issued them. Since theseare issued starting from 0 on every restart, we run the risk of issuing...
qemu-ga: make guest-sync-delimited available during fsfreeze
We currently maintain a whitelist of commands that are safe duringfsfreeze. During fsfreeze, we disable all commands that aren't part ofthat whitelist.
guest-sync-delimited meets the criteria for being whitelisted, and is...
qemu-ga: Plug file descriptor leak on ga_open_pidfile() error path
Spotted by Coverity. Also document why we keep it open on success.
Signed-off-by: Markus Armbruster <armbru@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>...
qemu-ga: Drop pointless lseek() from ga_open_pidfile()
After open(), the file offset is already zero, and neither lockf() norftruncate() change it.
qemu-ga: Document intentional fall through in channel_event_cb()
For clarity, and to hush up Coverity.
qemu-ga: add ga_open_logfile()
This function sets O_CLOEXEC on the log file fd so that it isn'tleaked to executed processes.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>Acked-by: Amos Kong <akong@redhat.com>...
qemu-ga: ga_open_pidfile(): use qemu_open()
This ensures that O_CLOEXEC is passed to open(), this way thepid file fd is not leaked to executed processes.
qemu-ga: execute hook to quiesce the guest on fsfreeze-freeze/thaw
To use the online disk snapshot for online-backup, application-levelconsistency of the snapshot image is required. However, currently theguest agent can provide only filesystem-level consistency, and the...
misc: move include files to include/qemu/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qapi: move include files to include/qobject/
qemu-ga: move qemu-ga files to qga/