1. 21 6月, 2016 3 次提交
    • J
      Introduce virsh self-test · 920ab8bd
      Ján Tomko 提交于
      A new hidden command for virsh that will iterate over
      all command groups and commands and print help for every single one.
      
      This involves running vshCmddefOptParse so we can get an error if
      one of the command's option structure is invalid.
      920ab8bd
    • J
      tests: mock gnutls_dh_params_generate2 · 743bda06
      Ján Tomko 提交于
      This function generates some big random numbers.
      
      Cache the result and supply it to any subsequent generate2 calls.
      743bda06
    • J
      Remove virsh-all · 9f95593d
      Ján Tomko 提交于
      Since e8ac4a79 this test wastes some CPU cycles by blindly trying to
      run almost every virsh command, blindly throwing away the output
      and the return value and returning success if 'virsh help' successfully
      returned at least one command.
      
      Drop it completely.
      9f95593d
  2. 20 6月, 2016 14 次提交
    • P
      util: Make failure to get supplementary group list for a uid non-fatal · 832f1602
      Peter Krempa 提交于
      Since introduction of the DAC security driver we've documented that
      seclabels with a leading + can be used with numerical uid. This would
      not work though with the rest of libvirt if the uid was not actually
      used in the system as we'd fail when trying to get a list of
      supplementary groups for the given uid. Since a uid without entry in
      /etc/passwd (or other user database) will not have any supplementary
      groups we can treat the failure to obtain them as such.
      
      This patch modifies virGetGroupList to not report the error for missing
      users and makes it return an empty list or just the group specified in
      @gid.
      
      All callers will grant less permissions to a user in case of failure of
      this function and thus this change is safe.
      832f1602
    • P
      util: Add option not to report errors in virGetUserEnt · c674dccc
      Peter Krempa 提交于
      In some cases it will be necessary to ignore errors reported from this
      function. This allows suppressing them to avoid spamming logs.
      c674dccc
    • P
      tools: virt-login-shell: Fix cut'n'paste mistake in error message · e29f5575
      Peter Krempa 提交于
      Whine about 'allowed_users' having wrong format rather than 'shell'
      e29f5575
    • P
      tools: virt-login-shell: Fix group list bounds checking · 94f93d70
      Peter Krempa 提交于
      The list certainly isn't zero terminated and it would disallow usage of
      group 'root'. Pass in the array size and match against it.
      94f93d70
    • P
      conf: Fix label name in virDomainGraphicsListensParseXML · 0a07bf3d
      Peter Krempa 提交于
      Use 'cleanup' since it's also used on success.
      0a07bf3d
    • P
      conf: Fix memory leak in graphics XML parser · 9982758c
      Peter Krempa 提交于
      When loading status XMLs with following graphics definition:
      
        <graphics type='spice' port='5900' autoport='yes' listen='127.0.0.1'>
          <listen type='address' address='127.0.0.1' fromConfig='1'/>
          <image compression='off'/>
        </graphics>
      
      libvirtd would leak a few bytes:
      
      10 bytes in 1 blocks are definitely lost in loss record 71 of 1,127
         at 0x4C2C000: malloc (vg_replace_malloc.c:299)
         by 0x6789298: xmlStrndup (in /usr/lib64/libxml2.so.2.9.4)
         by 0x552AB0A: virXMLPropString (virxml.c:479)
         by 0x5539536: virDomainGraphicsListensParseXML (domain_conf.c:11171)
         by 0x553DD5E: virDomainGraphicsDefParseXMLSpice (domain_conf.c:11414)
         by 0x553DD5E: virDomainGraphicsDefParseXML (domain_conf.c:11749)
         by 0x5566061: virDomainDefParseXML (domain_conf.c:16939)
         by 0x556953F: virDomainObjParseXML (domain_conf.c:17348)
         by 0x556953F: virDomainObjParseNode (domain_conf.c:17513)
         by 0x5569902: virDomainObjParseFile (domain_conf.c:17532)
         by 0x5571E02: virDomainObjListLoadStatus (virdomainobjlist.c:514)
         by 0x5571E02: virDomainObjListLoadAllConfigs (virdomainobjlist.c:596)
         by 0x26E0BDC8: qemuStateInitialize (qemu_driver.c:911)
         by 0x55B1FDB: virStateInitialize (libvirt.c:770)
         by 0x122039: daemonRunStateInit (libvirtd.c:960)
      9982758c
    • C
      util: fix a typo · a7822ba3
      Chen Hanxiao 提交于
      s/succcess/success
      Signed-off-by: NChen Hanxiao <chenhanxiao@gmail.com>
      a7822ba3
    • J
      docs: virsh: Added note for the dump command · dd14032b
      Jaroslav Suchanek 提交于
      Crash dump in a old kvmdump format is being obsolete and cannot be loaded and
      processed by crash utility since its version 6.1.0. A --memory-only option is
      required in order to produce valid ELF file which can be later processed by the
      crash utility. A new note is added to the dump command description.
      dd14032b
    • J
      Allow disjunct ranges in VIR_TEST_RANGE · 0cd5a726
      Ján Tomko 提交于
      Use virBitmapParseUnlimited to parse the env variable.
      0cd5a726
    • J
      Introduce virBitmapParseUnlimited · dc56b3a7
      Ján Tomko 提交于
      For parsing a bitmap of an unknown size.
      dc56b3a7
    • J
      Remove separator argument from virBitmapParse · ff52e9d4
      Ján Tomko 提交于
      Most the callers pass 0 in one form or another, including
      vircapstest which used VIR_ARCH_NONE.
      ff52e9d4
    • J
      Introduce virBitmapParseSeparator · d728689d
      Ján Tomko 提交于
      This will be used for the caller that needs to specify a separator.
      Currently identical to virBitmapParse.
      
      Also change one test case to use the new function.
      d728689d
    • J
      Do not return number of set bits in virBitmapParse · ba7c026d
      Ján Tomko 提交于
      This is only used by one caller.
      ba7c026d
    • A
      qemu: Don't use legacy USB for aarch64 mach-virt guests · dc5821d7
      Andrea Bolognani 提交于
      The '-usb' option doesn't have any effect for aarch64 mach-virt
      guests, so the fact that it's currently enabled by default is not
      really causing any issue.
      
      However, that might change in the future (although unlikely), and
      having it as part of the QEMU command line can cause confusion to
      someone looking through the process list.
      
      Avoid it completely, like it's already happening for q35.
      dc5821d7
  3. 19 6月, 2016 1 次提交
  4. 18 6月, 2016 10 次提交
  5. 17 6月, 2016 12 次提交