1. 11 7月, 2019 1 次提交
    • D
      rpc: always pass "-T -e none" args to ssh · 1939bcd5
      Daniel P. Berrangé 提交于
      Way back in the past, the "no_tty=1" option was added for the remote
      driver to disable local password prompting by disabling use of the local
      tty:
      
        commit b32f4298
        Author: Daniel P. Berrange <berrange@redhat.com>
        Date:   Fri Sep 21 20:17:09 2007 +0000
      
          Added a no_tty param to remote URIs to stop SSH prompting for password
      
      This was done by adding "-T -o BatchMode=yes -e none" args to ssh. This
      achieved the desired results but is none the less semantically flawed
      because it is mixing up config parameters for the local tty vs the
      remote tty.
      
      The "-T" arg stops allocation of a TTY on the remote host. This is good
      for all libvirt SSH tunnels as we never require a TTY for our usage
      model, so we should have just passed this unconditionally.
      
      The "-e none" option disables the escape character for sessions with a
      TTY. If we pass "-T" this is not required, but it also not harmful to
      add it, so we should just pass it unconditionally too.
      
      Only the "-o BatchMode=yes" option is related to disabling local
      password prompts and thus needs control via the no_tty URI param.
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      1939bcd5
  2. 10 4月, 2019 2 次提交
  3. 14 12月, 2018 1 次提交
    • D
      Remove all Author(s): lines from source file headers · 60046283
      Daniel P. Berrangé 提交于
      In many files there are header comments that contain an Author:
      statement, supposedly reflecting who originally wrote the code.
      In a large collaborative project like libvirt, any non-trivial
      file will have been modified by a large number of different
      contributors. IOW, the Author: comments are quickly out of date,
      omitting people who have made significant contribitions.
      
      In some places Author: lines have been added despite the person
      merely being responsible for creating the file by moving existing
      code out of another file. IOW, the Author: lines give an incorrect
      record of authorship.
      
      With this all in mind, the comments are useless as a means to identify
      who to talk to about code in a particular file. Contributors will always
      be better off using 'git log' and 'git blame' if they need to  find the
      author of a particular bit of code.
      
      This commit thus deletes all Author: comments from the source and adds
      a rule to prevent them reappearing.
      
      The Copyright headers are similarly misleading and inaccurate, however,
      we cannot delete these as they have legal meaning, despite being largely
      inaccurate. In addition only the copyright holder is permitted to change
      their respective copyright statement.
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      60046283
  4. 20 9月, 2018 1 次提交
  5. 19 9月, 2018 1 次提交
  6. 11 9月, 2018 1 次提交
  7. 04 9月, 2018 2 次提交
    • D
      tests: rewrite socket to do something sensible and reliable · 39015a6f
      Daniel P. Berrangé 提交于
      The current socket test is rather crazy in that it sets up a server
      listening for sockets and then runs a client connect call, relying on
      the fact that the kernel will accept this despite the application
      not having called accept() yet. It then closes the client socket and
      calls accept() on the server. On Linux accept() will always see that
      the client has gone and so skip the rest of the code. On FreeBSD,
      however, the accept sometimes succeeds, causing us to then go into
      code that attempts to read and write to the client which will fail
      aborting the test. The accept() never succeeds on FreeBSD guests
      with a single CPU, but as you add more CPUs, accept() becomes more and
      more likely to succeed, giving a 100% failure rate for the test when
      using 8 CPUs.
      
      This completely rewrites the test so that it is avoids this designed in
      race condition. We simply spawn a background thread to act as the
      client, which will read a byte from the server and write it back again.
      The main thread can now properly listen and accept the client in a
      synchronous manner avoiding any races.
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      39015a6f
    • D
      tests: merge code for UNIX and TCP socket testing · 9e2fad87
      Daniel P. Berrangé 提交于
      The test code for UNIX and TCP sockets will need to be rewritten and
      extended later, and will benefit from code sharing.
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      9e2fad87
  8. 30 8月, 2017 1 次提交
  9. 04 4月, 2017 1 次提交
  10. 24 6月, 2016 4 次提交
  11. 08 6月, 2016 2 次提交
  12. 03 5月, 2016 1 次提交
    • E
      virnetsocket: Provide socket address format in a more standard form · 9b45c9f0
      Erik Skultety 提交于
      Our socket address format is in a rather non-standard format and that is
      because sasl library requires the IP address and service to be delimited by a
      semicolon. The string form is a completely internal matter, however once the
      admin interfaces to retrieve client identity information are merged, we should
      return the socket address string in a common format, e.g. format defined by
      URI rfc-3986, i.e. the IP address and service are delimited by a colon and
      in case of an IPv6 address, square brackets are added:
      
      Examples:
          127.0.0.1:1234
          [::1]:1234
      
      This patch changes our default format to the one described above, while adding
      separate methods to request the non-standard SASL format using semicolon as a
      delimiter.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      9b45c9f0
  13. 04 11月, 2015 1 次提交
  14. 21 10月, 2015 1 次提交
  15. 11 6月, 2015 2 次提交
  16. 25 3月, 2014 1 次提交
  17. 18 3月, 2014 2 次提交
  18. 02 1月, 2014 2 次提交
  19. 21 10月, 2013 1 次提交
  20. 08 10月, 2013 1 次提交
  21. 11 7月, 2013 1 次提交
  22. 21 5月, 2013 1 次提交
  23. 02 5月, 2013 1 次提交
    • M
      virutil: Move string related functions to virstring.c · 7c9a2d88
      Michal Privoznik 提交于
      The source code base needs to be adapted as well. Some files
      include virutil.h just for the string related functions (here,
      the include is substituted to match the new file), some include
      virutil.h without any need (here, the include is removed), and
      some require both.
      7c9a2d88
  24. 23 1月, 2013 1 次提交
  25. 21 12月, 2012 4 次提交
  26. 21 9月, 2012 1 次提交
  27. 07 8月, 2012 1 次提交
  28. 23 7月, 2012 1 次提交
    • D
      Fix test failure when no IPv6 is avail · faffe269
      Doug Goldstein 提交于
      When the system doesn't have IPv6 available (e.g. not built into the
      kernel or the module isn't loaded), you can not create an IPv6 socket.
      The test determines earlier on that IPv6 isn't available then goes and
      creates a socket. This makes socket creation conditional on IPv6
      availability.
      faffe269