1. 07 10月, 2019 34 次提交
  2. 05 10月, 2019 1 次提交
  3. 02 10月, 2019 2 次提交
  4. 01 10月, 2019 3 次提交
    • D
      remote: don't pull anonymous enums into rpc protocol structs · 509a1d9d
      Daniel P. Berrangé 提交于
      The VIR_TYPED_PARAM_* enum fields are defined in libvirt-common.h, not
      in the remote protcol, so shouldn't be part of the protocol structs
      output check. This avoids similar problems hitting when we add use of
      glib, which has other such anonymous enums.
      Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      509a1d9d
    • D
      docs: attempt to document the general libvirt dev strategy · 557ac8cb
      Daniel P. Berrangé 提交于
      There are various ideas / plans floating around for future libvirt work,
      some of which is actively in progress. Historically we've never captured
      this kind of information anywhere, except in mailing list discussions.
      In particular guidelines in hacking.html.in don't appear until a policy
      is actively applied.
      
      This patch attempts to fill the documentation gap, by creating a new
      "strategy" page which outlines the general vision for some notable
      future changes. The key thing to note is that none of the stuff on this
      page is guaranteed, plans may change as new information arises. IOW this
      is a "best guess" as to the desired future.
      
      This doc has focused on three areas, related to the topic of language
      usage / consolidation
      
       - Use of non-C languages for the library, daemons or helper tools
       - Replacement of autotools with meson
       - Use of RST and Sphinx for documentation (website + man pages)
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      557ac8cb
    • D
      rpc: fix escaping of shell path for netcat binary · 76d31244
      Daniel P. Berrangé 提交于
      Consider having a nc binary in the path with a space in its name,
      for example '/tmp/fo o/nc'
      
      This results in libvirt running SSH with the following arg value
      
        "'if ''/tmp/fo o/nc'' -q 2>&1 | grep \"requires
          an argument\" >/dev/null 2>&1; then ARG=-q0;
          else ARG=;fi;''/tmp/fo o/nc'' $ARG -U
          /var/run/libvirt/libvirt-sock'"
      
      The use of the single quote escaping was introduced by
      
        commit 6ac6238d
        Author: Guido Günther <agx@sigxcpu.org>
        Date:   Thu Oct 13 21:49:01 2011 +0200
      
          Use virBufferEscapeShell in virNetSocketNewConnectSSH
      
          to escape the netcat command since it's passed to the shell. Adjust
          expected test case output accordingly.
      
      While the intention of this change was good, the result is broken as it
      is still underquoted.
      
      On the SSH server side, SSH itself runs the command via the shell.
      Our command is then invoking the shell again. Thus we see
      
      $ virsh -c qemu+ssh://root@domokun/system?netcat=%2Ftmp%2Ffo%20o%2Fnc list
      error: failed to connect to the hypervisor
      error: End of file while reading data: sh: /tmp/fo: No such file or directory: Input/output error
      
      With the second level of escaping added we can now successfully use a nc
      binary with a space in the path.
      
      The original test case added was misleading as it illustrated using a
      binary path of 'nc -4' which is not a path, it is a command with a
      separate argument, which is getting interpreted as a path.
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      76d31244