Skip to content
Snippets Groups Projects
  1. Jan 18, 2022
  2. Nov 16, 2021
    • Richard W.M. Jones's avatar
      nbd/server: Add --selinux-label option · 3d212b41
      Richard W.M. Jones authored
      Under SELinux, Unix domain sockets have two labels.  One is on the
      disk and can be set with commands such as chcon(1).  There is a
      different label stored in memory (called the process label).  This can
      only be set by the process creating the socket.  When using SELinux +
      SVirt and wanting qemu to be able to connect to a qemu-nbd instance,
      you must set both labels correctly first.
      
      For qemu-nbd the options to set the second label are awkward.  You can
      create the socket in a wrapper program and then exec into qemu-nbd.
      Or you could try something with LD_PRELOAD.
      
      This commit adds the ability to set the label straightforwardly on the
      command line, via the new --selinux-label flag.  (The name of the flag
      is the same as the equivalent nbdkit option.)
      
      A worked example showing how to use the new option can be found in
      this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1984938
      
      Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1984938
      
      
      Signed-off-by: default avatarRichard W.M. Jones <rjones@redhat.com>
      Reviewed-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      
      [eblake: rebase to configure changes, reject --selinux-label if it is
      not compiled in or not used on a Unix socket]
      Note that we may relax some of these restrictions at a later date,
      such as making it possible to label a TCP socket, although it may be
      smarter to do so as a generic QMP action rather than more one-off
      command lines in qemu-nbd.
      Signed-off-by: default avatarEric Blake <eblake@redhat.com>
      Message-Id: <20211115202944.615966-1-eblake@redhat.com>
      Reviewed-by: default avatarThomas Huth <thuth@redhat.com>
      [eblake: adjust meson output as suggested by thuth]
      Signed-off-by: default avatarEric Blake <eblake@redhat.com>
      3d212b41
  3. Jul 14, 2021
  4. Jun 19, 2021
  5. May 18, 2021
  6. May 14, 2021
    • Marc-André Lureau's avatar
      sphinx: adopt kernel readthedoc theme · 73e6aec6
      Marc-André Lureau authored
      
      The default "alabaster" sphinx theme has a couple shortcomings:
      - the navbar moves along the page
      - the search bar is not always at the same place
      - it lacks some contrast and colours
      
      The "rtd" theme from readthedocs.org is a popular third party theme used
      notably by the kernel, with a custom style sheet. I like it better,
      perhaps others do too. It also simplifies the "Edit on Gitlab" links.
      
      Tweak a bit the custom theme to match qemu.org style, use the
      QEMU logo, and favicon etc.
      
      Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
      Tested-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Message-Id: <20210323115328.4146052-1-marcandre.lureau@redhat.com>
      Reviewed-by: default avatarJohn Snow <jsnow@redhat.com>
      73e6aec6
  7. Feb 24, 2021
  8. Jan 26, 2021
    • Thomas Huth's avatar
      gitlab-ci.yml: Avoid some submodules to speed up the CI a little bit · db0108d5
      Thomas Huth authored
      
      Since the meson build system rework, the configure script prefers the
      git submodules over the system libraries. So we are testing compilation
      with capstone, fdt and libslirp as a submodule all over the place,
      burning CPU cycles by recompiling these third party modules and wasting
      some network bandwidth in the CI by cloning the submodules each time.
      Let's stop doing that in at least a couple of jobs and use the system
      libraries instead.
      
      While we're at it, also install meson in the Fedora container, since
      it is new enough already, so we do not need to check out the meson
      submodule here.
      
      Message-Id: <20210121174451.658924-1-thuth@redhat.com>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      db0108d5
  9. Oct 26, 2020
  10. Oct 17, 2020
  11. Oct 09, 2020
  12. Oct 05, 2020
  13. Sep 29, 2020
  14. Jul 11, 2020
  15. Jun 16, 2020
  16. Jun 08, 2020
  17. Apr 15, 2020
  18. Mar 27, 2020
  19. Feb 28, 2020
  20. Jan 06, 2020
  21. Dec 17, 2019
  22. Dec 09, 2019
  23. Jul 23, 2019
  24. Jun 24, 2019
    • Pino Toscano's avatar
      ssh: switch from libssh2 to libssh · b10d49d7
      Pino Toscano authored
      
      Rewrite the implementation of the ssh block driver to use libssh instead
      of libssh2.  The libssh library has various advantages over libssh2:
      - easier API for authentication (for example for using ssh-agent)
      - easier API for known_hosts handling
      - supports newer types of keys in known_hosts
      
      Use APIs/features available in libssh 0.8 conditionally, to support
      older versions (which are not recommended though).
      
      Adjust the iotest 207 according to the different error message, and to
      find the default key type for localhost (to properly compare the
      fingerprint with).
      Contributed-by: default avatarMax Reitz <mreitz@redhat.com>
      
      Adjust the various Docker/Travis scripts to use libssh when available
      instead of libssh2. The mingw/mxe testing is dropped for now, as there
      are no packages for it.
      
      Signed-off-by: default avatarPino Toscano <ptoscano@redhat.com>
      Tested-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
      Acked-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Message-id: 20190620200840.17655-1-ptoscano@redhat.com
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
      Message-id: 5873173.t2JhDm7DL7@lindworm.usersys.redhat.com
      Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
      b10d49d7
  25. Jun 12, 2019
  26. May 28, 2019
  27. Jan 14, 2019
  28. Jan 11, 2019
    • Paolo Bonzini's avatar
      test: replace gtester with a TAP driver · 9df43317
      Paolo Bonzini authored
      gtester is deprecated by upstream glib (see for example the announcement
      at https://blog.gtk.org/2018/07/11/news-from-glib-2-58/
      
      ) and it does
      not support tests that call g_test_skip in some glib stable releases.
      
      glib suggests instead using Automake's TAP support, which gtest itself
      supports since version 2.38 (QEMU's minimum requirement is 2.40).
      We do not support Automake, but we can use Automake's code to beautify
      the TAP output.  I chose to use the Perl copy rather than the shell/awk
      one, with some changes so that it can accept TAP through stdin, in order
      to reuse Perl's TAP parsing package.  This also avoids duplicating the
      parser between tap-driver.pl and tap-merge.pl.
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Message-Id: <1543513531-1151-3-git-send-email-pbonzini@redhat.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      9df43317
  29. Sep 10, 2018
  30. Jun 05, 2018
Loading