1. 15 11月, 2018 6 次提交
  2. 14 11月, 2018 5 次提交
  3. 13 11月, 2018 3 次提交
  4. 12 11月, 2018 3 次提交
  5. 09 11月, 2018 2 次提交
  6. 08 11月, 2018 5 次提交
  7. 07 11月, 2018 6 次提交
  8. 06 11月, 2018 5 次提交
  9. 05 11月, 2018 5 次提交
    • J
      docs: Enhance polkit documentation to describe secondary connection · 4f110761
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1631606
      
      Since commit 82592551 usage of a primary connection driver for
      a virConnect has been modified to open (virConnectOpen) and use
      a connection to the specific driver in order to handle the API
      calls to/for that driver. This causes some confusion and issues
      for ACL polkit rule scripts to know exactly which driver by
      name will be used.
      
      Add some documentation describing the processing of the primary
      and secondary connection as well as the list of the connect_driver
      names used for each driver.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      ACKed-by: NMichal Privoznik <mprivozn@redhat.com>
      4f110761
    • 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
    • N
      nwfilter: Instantiate active filter bindings during driver init · 67125e0d
      Nikolay Shirokovskiy 提交于
      Commit 57f5621f modified nwfilterInstantiateFilter to detect when
      a filter binding was already present before attempting to add the
      new binding and instantiate it. Additionally, the change to
      nwfilterStateInitialize to call virNWFilterBindingObjListLoadAllConfigs
      (from commit c21679fa) to load active domain filter bindings, but
      not instantiate them eventually leads to a problem for the QEMU
      driver reconnection logic after a daemon restart where the filter
      bindings would no longer be instantiated.
      
      Subsequent commit f14c37ce replaced the nwfilterInstantiateFilter
      with virDomainConfNWFilterInstantiate which uses @ignoreExists to
      detect presence of the filter and still did not restore the filter
      instantiation call when making the new nwfilter bindings logic active.
      
      Thus in order to instantiate any active domain filter, we will call
      virNWFilterBuildAll with 'false' to indicate the need to go through
      all the active bindings calling virNWFilterInstantiateFilter to
      instantiate the filter bindings.
      Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      67125e0d
    • J
      nodedev: Document the udevEventHandleThread · 29183778
      John Ferlan 提交于
      Commit cdbe1332 neglected to document the API. So let's add some
      details about the algorithm and why it was used to help future
      readers understand the issues encountered.
      
      NB: Management of the processing udev device notification is a
      delicate balance between the udev process, the scheduler, and when
      exactly the data from/for the socket is received. The balance is
      particularly important for environments when multiple devices are
      added into the system more or less simultaneously such as is done
      for mdev or SRIOV. In these cases old libudev blocking on the udev
      recv() occurs more frequently. It's expected that future devices
      will follow similar algorithms. Even though the algorithm does
      present some challenges for older OS's (such as Centos 6), trying
      to rewrite the algorithm to fit both models would be more complex
      and involve pulling the monitor object out of the private data
      lockable object and would need to be guarded by a separate lock.
      Devising such an algorithm to work around issues with older OS's
      at the expense of more modern OS algorithms in newer event processing
      code may result in unexpected issues, so the choice is to encourage
      use of newer OS's with newer udev event processing code.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      29183778
    • M
      qemu: Dissolve qemuBuildVhostuserCommandLine in qemuBuildInterfaceCommandLine · 4de4e4bc
      Michal Privoznik 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1524230
      
      The qemuBuildVhostuserCommandLine builds command line for
      vhostuser type interfaces. It is duplicating some code of the
      function it is called from (qemuBuildInterfaceCommandLine)
      because of the way it's called. If we merge it into the caller
      not only we save a few lines but we also enable checks that we
      would have to duplicate otherwise (e.g. QoS availability).
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      4de4e4bc