1. 21 6月, 2016 1 次提交
  2. 20 6月, 2016 10 次提交
    • 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
      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
      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 8 次提交
  5. 17 6月, 2016 20 次提交