1. 02 Nov, 2018 1 commit
  2. 21 Sep, 2018 1 commit
  3. 19 Sep, 2018 1 commit
    • Jakub Janků's avatar
      vdagentd: parse argv using GLib · 8df6120b
      Jakub Janků authored
      All command line options now have long names
      as they are required by GLib.
      So the supported command line options now are:
          -h, --help
          -d, --debug
          -s, --virtio-serial-port-path
          -S, --vdagentd-socket
          -u, --uinput-device
          -f, --fake-uinput
          -x, --foreground
          -o, --one-session
          -X, --disable-session-integration
      Change the types of some global variables that hold the options:
      - const char * --> gchar *
      - int          --> gboolean
      Define DEFAULT_UINPUT_DEVICE as "/dev/uinput",
      since there's already DEFAULT_VIRTIO_PORT_PATH, VDAGENTD_SOCKET.
      Signed-off-by: default avatarJakub Janků <jjanku@redhat.com>
      Acked-by: Victor Toso's avatarVictor Toso <victortoso@redhat.com>
  4. 13 Sep, 2018 1 commit
  5. 07 Sep, 2018 6 commits
  6. 28 Aug, 2018 1 commit
  7. 14 Aug, 2018 2 commits
  8. 23 Jul, 2018 1 commit
  9. 06 Jun, 2018 4 commits
  10. 30 May, 2018 1 commit
  11. 10 Apr, 2018 2 commits
  12. 05 Mar, 2018 2 commits
  13. 11 Dec, 2017 4 commits
  14. 01 Dec, 2017 2 commits
  15. 29 Nov, 2017 1 commit
  16. 16 Nov, 2017 1 commit
    • Jonathon Jongsma's avatar
      Quote the save directory before passing to shell · 8ba17481
      Jonathon Jongsma authored
      Thanks to a report from Seth Arnold <seth.arnold@canonial.com>:
      - vdagent_file_xfers_data() does not escape xfers->save_dir before giving
        it to the shell
      - vdagent_file_xfers_data() does not check snprintf() return code; a
        too-long xfers->save_dir could cause the & or ' or any number of other
        characters to go missing.
      To fix these issues, we use g_spawn_async(). This avoids the need to
      quote the filename and also avoids the snprintf issue.
      In the case that the spawn fails, we also print a warning to the syslog
      Signed-off-by: default avatarJonathon Jongsma <jjongsma@redhat.com>
      Acked-by: Frediano Ziglio's avatarFrediano Ziglio <fziglio@redhat.com>
  17. 20 Oct, 2017 8 commits
  18. 24 Jul, 2017 1 commit
    • Jonathon Jongsma's avatar
      Add systemd socket activation · 183e2fec
      Jonathon Jongsma authored
      If we are configured to use the systemd init script, also add support
      for systemd socket activation. systemd will listen on the socket that is
      used to communicate between the session agent and the system daemon.
      When the session agent connects, the system daemon will automatically be
      started. The socket will be enabled only if the required virtio-port
      device exists. The socket is disabled when the device is removed.
      This has a couple minor advantages to the previous approach:
        - For VMS that are not running a graphical desktop (and thus no
          session agents are running), the system vdagent daemon won't get
          started at all even if the spice virtio port is configured. Only the
          socket will be enabled. In the previous approach, the system daemon
          was started when the virtio device was added regardless of whether
          it was needed or not.
        - Solves issues related to switching between systemd targets. With the
          previous approach, when a user switches to a different...