vdagentd: Advertise VD_AGENT_CAP_GUEST_LINEEND_LF

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
buildsys: Build vdagentd as pie + relro when possible

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Fix vdagent-x11.h header guard name
Not having the virtio channel is not an error; instead silently do nothing

Fedora for example bundles the SPICE agent by default; however, we
don't want to spew an error when running non-virtualized, or with
plain VNC.

Let's just silently exit; while we could change LOG_ERR -> LOG_INFO
or something, that's still pointless noise in most people's syslog.

Someone who was debugging a misconfigured SPICE setup would pretty
quickly notice that they were missing the virtio port.

(This patch is part of a larger initiative to reduce error
 spew on default startup in common deployment scenarios such as
 KVM+VNC.)

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
vdagent_x11_target_to_type: Improve error logging

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
vdagent-x11: Turn some error messages into debugging messages (rhbz#918310)

Some bad clients, ie autocutsel, don't stick to the icccm spec, causing us to
flood the logs with error messages, turn these into debug messages instead,
so that they are only shown when debuggging / verbose logging is turned on.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
vdagent: add option to change vdagentd socket

Signed-off-by: Alon Levy <alevy@redhat.com>
vdagentd: support configurable socket to vdagent

Signed-off-by: Alon Levy <alevy@redhat.com>
vdagentd: support virtio as uds for Xspice usage

Signed-off-by: Alon Levy <alevy@redhat.com>
vdagentd: support fake uinput

This is used with Xspice. Fake means we open a pipe for write only, and
don't do any ioctls on it. Specifically it means the axis and buttons
have to be coordinated for now with Xspice (xf86-video-qxl).

Signed-off-by: Alon Levy <alevy@redhat.com>
vdagent-virtio-port: close socket on error

Signed-off-by: Alon Levy <alevy@redhat.com>
vdagent-x11: Release clipboard on client disconnect if owned by client

https://bugzilla.redhat.com/show_bug.cgi?id=1003977

Signed-off-by: Hans de Goede <hdegoede@redhat.com>