qemu-e2k/ui
Daniel P. Berrange 1366108981 Introduce a 'client_add' monitor command accepting an open FD
Allow client connections for VNC and socket based character
devices to be passed in over the monitor using SCM_RIGHTS.

One intended usage scenario is to start QEMU with VNC on a
UNIX domain socket. An unprivileged user which cannot access
the UNIX domain socket, can then connect to QEMU's VNC server
by passing an open FD to libvirt, which passes it onto QEMU.

 { "execute": "get_fd", "arguments": { "fdname": "myclient" } }
 { "return": {} }
 { "execute": "add_client", "arguments": { "protocol": "vnc",
                                           "fdname": "myclient",
                                           "skipauth": true } }
 { "return": {} }

In this case 'protocol' can be 'vnc' or 'spice', or the name
of a character device (eg from -chardev id=XXXX)

The 'skipauth' parameter can be used to skip any configured
VNC authentication scheme, which is useful if the mgmt layer
talking to the monitor has already authenticated the client
in another way.

* console.h: Define 'vnc_display_add_client' method
* monitor.c: Implement 'client_add' command
* qemu-char.c, qemu-char.h: Add 'qemu_char_add_client' method
* qerror.c, qerror.h: Add QERR_ADD_CLIENT_FAILED
* qmp-commands.hx: Declare 'client_add' command
* ui/vnc.c: Implement 'vnc_display_add_client' method

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2011-07-23 11:19:02 -05:00
..
cocoa.m cocoa: Avoid warning related to multiple handleEvent: definitions 2011-06-14 03:08:58 +02:00
curses_keys.h
curses.c Fix compilation warning due to missing header for sigaction (followup) 2011-06-08 09:04:29 +01:00
d3des.c
d3des.h
keymaps.c
keymaps.h
qemu-spice.h qemu-char: Print strerror message on failure 2011-07-23 11:18:57 -05:00
sdl_keysym.h
sdl_zoom_template.h
sdl_zoom.c
sdl_zoom.h
sdl.c Fix compilation warning due to missing header for sigaction (followup) 2011-06-08 09:04:29 +01:00
spice-core.c spice: add sanity check for spice ports 2011-07-20 10:08:53 +02:00
spice-display.c qxl: set mm_time in vga update 2011-07-04 15:35:12 +02:00
spice-display.h
spice-input.c
vnc_keysym.h
vnc-auth-sasl.c Store VNC auth scheme per-client as well as per-server 2011-07-23 11:19:02 -05:00
vnc-auth-sasl.h
vnc-auth-vencrypt.c Store VNC auth scheme per-client as well as per-server 2011-07-23 11:19:02 -05:00
vnc-auth-vencrypt.h
vnc-enc-hextile-template.h
vnc-enc-hextile.c
vnc-enc-tight.c vnc: Fix compilation with --enable-vnc-png 2011-06-27 10:21:34 -05:00
vnc-enc-tight.h
vnc-enc-zlib.c
vnc-enc-zrle-template.c
vnc-enc-zrle.c
vnc-enc-zrle.h
vnc-enc-zywrle-template.c
vnc-enc-zywrle.h
vnc-jobs-async.c
vnc-jobs-sync.c
vnc-jobs.h
vnc-palette.c
vnc-palette.h
vnc-tls.c
vnc-tls.h
vnc.c Introduce a 'client_add' monitor command accepting an open FD 2011-07-23 11:19:02 -05:00
vnc.h Store VNC auth scheme per-client as well as per-server 2011-07-23 11:19:02 -05:00
x_keymap.c
x_keymap.h