1. 07 12月, 2018 1 次提交
  2. 06 12月, 2018 1 次提交
  3. 05 12月, 2018 1 次提交
  4. 04 12月, 2018 1 次提交
  5. 03 12月, 2018 2 次提交
  6. 27 11月, 2018 2 次提交
  7. 26 11月, 2018 1 次提交
  8. 21 11月, 2018 1 次提交
  9. 20 11月, 2018 1 次提交
  10. 16 11月, 2018 3 次提交
  11. 15 11月, 2018 19 次提交
  12. 05 11月, 2018 1 次提交
    • J
      access: Modify the VIR_ERR_ACCESS_DENIED to include driverName · ccc72d5c
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1631606
      
      Changes made to manage and utilize a secondary connection
      driver to APIs outside the scope of the primary connection
      driver have resulted in some confusion processing polkit rules
      since the simple "access denied" error message doesn't provide
      enough of a clue when combined with the "authentication failed:
      access denied by policy" as to which connection driver refused
      or failed the ACL check.
      
      In order to provide some context, let's modify the existing
      "access denied" error returne from the various vir*EnsureACL
      API's to provide the connection driver name that is causing
      the failure. This should provide the context for writing the
      polkit rules that would allow access via the driver.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      ACKed-by: NMichal Privoznik <mprivozn@redhat.com>
      ccc72d5c
  13. 30 10月, 2018 1 次提交
  14. 22 10月, 2018 1 次提交
  15. 19 10月, 2018 2 次提交
  16. 17 10月, 2018 1 次提交
  17. 12 10月, 2018 1 次提交
    • P
      util: storage: Properly parse URIs with missing trailing slash · 6e7e965d
      Peter Krempa 提交于
      The URI parser used by libvirt does not populate uri->path if the
      trailing slash is missing. The code virStorageSourceParseBackingURI
      would then not populate src->path.
      
      As only NBD network disks are allowed to have the 'name' field in the
      XML defining the disk source omitted we'd generate an invalid XML which
      we'd not parse again.
      
      Fix it by populating src->path with an empty string if the uri is
      lacking slash.
      
      As pointed out above NBD is special in this case since we actually allow
      it being NULL. The URI path is used as export name. Since an empty
      export does not make sense the new approach clears the src->path if the
      trailing slash is present but nothing else.
      
      Add test cases now to cover all the various cases for NBD and non-NBD
      uris as there was to time only 1 test abusing the quirk witout slash for
      NBD and all other URIs contained the slash or in case of NBD also the
      export name.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      6e7e965d