1. 10 1月, 2019 3 次提交
  2. 08 1月, 2019 2 次提交
  3. 18 12月, 2018 1 次提交
  4. 05 10月, 2018 1 次提交
    • P
      util: introduce cgroup v2 files · b4ddf5ae
      Pavel Hrdina 提交于
      Place cgroup v2 backend type before cgroup v1 to make it obvious
      that cgroup v2 is preferred implementation.
      
      Following patches will introduce support for hybrid configuration
      which will allow us to use both at the same time, but we should
      prefer cgroup v2 regardless.
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      b4ddf5ae
  5. 25 9月, 2018 2 次提交
  6. 28 8月, 2018 1 次提交
  7. 13 8月, 2018 3 次提交
  8. 10 8月, 2018 1 次提交
  9. 01 8月, 2018 1 次提交
    • D
      util: avoid symbol clash between json libraries · ce3c6ef6
      Daniel P. Berrangé 提交于
      The jansson and json-glib libraries both export symbols with a json_
      name prefix and json_object_iter_next() clashes between them.
      
      Unfortunately json-glib is linked in by GTK, so any app using GTK and
      libvirt will get a clash, resulting in SEGV. This also affects the NSS
      module provided by libvirt
      
      Instead of directly linking to jansson, use dlopen() with the RTLD_LOCAL
      flag which allows us to hide the symbols from the application that loads
      libvirt or the NSS module.
      
      Some preprocessor black magic and wrapper functions are used to redirect
      calls into the dlopen resolved symbols.
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      ce3c6ef6
  10. 18 7月, 2018 1 次提交
  11. 05 6月, 2018 2 次提交
  12. 02 5月, 2018 1 次提交
  13. 24 4月, 2018 2 次提交
    • D
      build: prevent unloading of dlopen'd modules · 71feef92
      Daniel P. Berrangé 提交于
      We previously added "-z nodelete" to the build of libvirt.so to prevent
      crashes when thread local destructors run which point to a code that
      has been dlclose()d:
      
        commit 8e44e559
        Author: Daniel P. Berrange <berrange@redhat.com>
        Date:   Thu Sep 1 17:57:06 2011 +0100
      
            Prevent crash from dlclose() of libvirt.so
      
      The libvirtd loadable modules can suffer from the same problem if they
      were ever unloaded. Fortunately we don't ever call dlclose() on them,
      but lets add a second layer of protection by linking them with the
      "-z nodelete" flag. While we're doing this, lets add a third layer of
      protection by passing RTLD_NODELETE to dlopen().
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      71feef92
    • D
      build: prevent unloading of all public libraries · 419607c4
      Daniel P. Berrangé 提交于
      We previously added "-z nodelete" to the build of libvirt.so to prevent
      crashes when thread local destructors run which point to a code that
      has been dlclose()d:
      
        commit 8e44e559
        Author: Daniel P. Berrange <berrange@redhat.com>
        Date:   Thu Sep 1 17:57:06 2011 +0100
      
            Prevent crash from dlclose() of libvirt.so
      
      We forgot to copy this protection into the libvirt-qemu.so, libvirt-lxc.so
      and libvirt-admin.so libraries when we introduced them.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      419607c4
  14. 10 4月, 2018 1 次提交
  15. 15 3月, 2018 2 次提交
  16. 06 3月, 2018 16 次提交