1. 25 2月, 2020 1 次提交
  2. 18 12月, 2019 1 次提交
  3. 20 11月, 2019 1 次提交
  4. 12 11月, 2019 1 次提交
  5. 09 11月, 2019 2 次提交
  6. 15 10月, 2019 2 次提交
  7. 14 10月, 2019 2 次提交
    • D
    • D
      build: link to glib library · cfbe9f12
      Daniel P. Berrangé 提交于
      Add the main glib.h to internal.h so that all common code can use it.
      
      Historically glib allowed applications to register an alternative
      memory allocator, so mixing g_malloc/g_free with malloc/free was not
      safe.
      
      This was feature was dropped in 2.46.0 with:
      
            commit 3be6ed60aa58095691bd697344765e715a327fc1
            Author: Alexander Larsson <alexl@redhat.com>
            Date:   Sat Jun 27 18:38:42 2015 +0200
      
              Deprecate and drop support for memory vtables
      
      Applications are still encourged to match g_malloc/g_free, but it is no
      longer a mandatory requirement for correctness, just stylistic. This is
      explicitly clarified in
      
          commit 1f24b36607bf708f037396014b2cdbc08d67b275
          Author: Daniel P. Berrangé <berrange@redhat.com>
          Date:   Thu Sep 5 14:37:54 2019 +0100
      
              gmem: clarify that g_malloc always uses the system allocator
      
      Applications can still use custom allocators in general, but they must
      do this by linking to a library that replaces the core malloc/free
      implemenentation entirely, instead of via a glib specific call.
      
      This means that libvirt does not need to be concerned about use of
      g_malloc/g_free causing an ABI change in the public libary, and can
      avoid memory copying when talking to external libraries.
      
      This patch probes for glib, which provides the foundation layer with
      a collection of data structures, helper APIs, and platform portability
      logic.
      
      Later patches will introduce linkage to gobject which provides the
      object type system, built on glib, and gio which providing objects
      for various interesting tasks, most notably including DBus client
      and server support and portable sockets APIs, but much more too.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      cfbe9f12
  8. 16 9月, 2019 2 次提交
  9. 16 8月, 2019 1 次提交
  10. 27 7月, 2019 1 次提交
  11. 17 6月, 2019 1 次提交
  12. 13 6月, 2019 1 次提交
  13. 12 4月, 2019 1 次提交
  14. 10 4月, 2019 1 次提交
  15. 04 2月, 2019 1 次提交
  16. 14 12月, 2018 1 次提交
  17. 05 12月, 2018 1 次提交
  18. 15 11月, 2018 2 次提交
    • J
      access: Modify the VIR_ERR_ACCESS_DENIED to include driverName · 605496be
      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 returned 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, but yet
      still adhere to the virAccessManagerSanitizeError commentary
      regarding not telling the user why access was denied.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      605496be
    • J
      Revert "access: Modify the VIR_ERR_ACCESS_DENIED to include driverName" · b08396a5
      John Ferlan 提交于
      This reverts commit ccc72d5c.
      
      Based on upstream comment to a follow-up patch, this didn't take the
      right approach and the right thing to do is revert and rework.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      b08396a5
  19. 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
  20. 24 8月, 2018 1 次提交
    • J
      access: Fix nwfilter-binding ACL access API name generation · 6ef65e3c
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1611320
      
      Generation of the ACL API policy is a "automated process"
      based on this perl script which "worked" with the changes to
      add nwfilter binding API's because they had the "nwfilter"
      prefix; however, the generated output name was incorrect
      based on the remote protocol algorithm which expected to
      generate names such as 'nwfilter-binding.action' instead
      of 'nwfilter.binding-action'.
      
      This effectively changes src/access/org.libvirt.api.policy entries:
      
        org.libvirt.api.nwfilter.binding-create ==>
            org.libvirt.api.nwfilter-binding.create
      
        org.libvirt.api.nwfilter.binding-delete ==>
            org.libvirt.api.nwfilter-binding.delete
      
        org.libvirt.api.nwfilter.binding-getattr ==>
            org.libvirt.api.nwfilter-binding.getattr
      
        org.libvirt.api.nwfilter.binding-read ==>
            org.libvirt.api.nwfilter-binding.read
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      6ef65e3c
  21. 26 6月, 2018 1 次提交
  22. 04 5月, 2018 1 次提交
  23. 18 4月, 2018 1 次提交
    • M
      virobject: Introduce VIR_CLASS_NEW() macro · 10f94828
      Michal Privoznik 提交于
      So far we are repeating the following lines over and over:
      
        if (!(virSomeObjectClass = virClassNew(virClassForObject(),
                                   "virSomeObject",
                                   sizeof(virSomeObject),
                                   virSomeObjectDispose)))
            return -1;
      
      While this works, it is impossible to do some checking. Firstly,
      the class name (the 2nd argument) doesn't match the name in the
      code in all cases (the 3rd argument). Secondly, the current style
      is needlessly verbose. This commit turns example into following:
      
        if (!(VIR_CLASS_NEW(virSomeObject,
                            virClassForObject)))
            return -1;
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      10f94828
  24. 14 3月, 2018 1 次提交
  25. 06 3月, 2018 1 次提交
  26. 03 11月, 2017 1 次提交
    • A
      Remove backslash alignment attempts · 3e7db8d3
      Andrea Bolognani 提交于
      Right-aligning backslashes when defining macros or using complex
      commands in Makefiles looks cute, but as soon as any changes is
      required to the code you end up with either distractingly broken
      alignment or unnecessarily big diffs where most of the changes
      are just pushing all backslashes a few characters to one side.
      
      Generated using
      
        $ git grep -El '[[:blank:]][[:blank:]]\\$' | \
          grep -E '*\.([chx]|am|mk)$$' | \
          while read f; do \
            sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
          done
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      3e7db8d3
  27. 16 10月, 2017 1 次提交
  28. 19 9月, 2017 1 次提交
  29. 09 1月, 2017 1 次提交
  30. 09 9月, 2016 1 次提交
    • J
      conf: Add new secret type "tls" · 13350a17
      John Ferlan 提交于
      Add a new secret usage type known as "tls" - it will handle adding the
      secret objects for various TLS objects that need to provide some sort
      of passphrase in order to access the credentials.
      
      The format is:
      
         <secret ephemeral='no' private='no'>
           <description>Sample TLS secret</description>
           <usage type='tls'>
             <name>mumblyfratz</name>
           </usage>
      </secret>
      
      Once defined and a passphrase set, future patches will allow the UUID
      to be set in the qemu.conf file and thus used as a secret for various
      TLS options such as a chardev serial TCP connection, a NBD client/server
      connection, and migration.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      13350a17
  31. 15 7月, 2016 1 次提交
  32. 02 7月, 2016 1 次提交
    • J
      conf: Add new secret type "passphrase" · c8438010
      John Ferlan 提交于
      Add a new secret type known as "passphrase" - it will handle adding the
      secret objects that need a passphrase without a specific username.
      
      The format is:
      
         <secret ...>
           <uuid>...</uuid>
           ...
           <usage type='passphrase'>
             <name>mumblyfratz</name>
           </usage>
         </secret>
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      c8438010
  33. 17 7月, 2015 1 次提交
  34. 21 5月, 2015 1 次提交
  35. 09 12月, 2014 1 次提交
    • E
      build: fix mingw printing of pid · 1398b700
      Eric Blake 提交于
      Commit c7542573 introduced a compilation failure:
      
      ../../src/access/viraccessdriverpolkit.c: In function 'virAccessDriverPolkitCheck':
      ../../src/access/viraccessdriverpolkit.c:137:5: error: format '%d' expects argument of type 'int', but argument 9 has type 'pid_t' [-Werror=format=]
           VIR_DEBUG("Check action '%s' for process '%d' time %lld uid %d",
           ^
      
      Since mingw pid_t is 64 bits, it's easier to just follow what we've
      done elsewhere and cast to a large enough type when printing pids.
      
      * src/access/viraccessdriverpolkit.c (virAccessDriverPolkitCheck):
      Add cast.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      1398b700