1. 28 1月, 2020 1 次提交
  2. 27 1月, 2020 1 次提交
    • D
      qemu: add support for running QEMU driver in embedded mode · 068efae5
      Daniel P. Berrangé 提交于
      This enables support for running QEMU embedded to the calling
      application process using a URI:
      
         qemu:///embed?root=/some/path
      
      Note that it is important to keep the path reasonably short to
      avoid risk of hitting the limit on UNIX socket path names
      which is 108 characters.
      
      When using the embedded mode with a root=/var/tmp/embed, the
      driver will use the following paths:
      
                      logDir: /var/tmp/embed/log/qemu
                 swtpmLogDir: /var/tmp/embed/log/swtpm
               configBaseDir: /var/tmp/embed/etc/qemu
                    stateDir: /var/tmp/embed/run/qemu
               swtpmStateDir: /var/tmp/embed/run/swtpm
                    cacheDir: /var/tmp/embed/cache/qemu
                      libDir: /var/tmp/embed/lib/qemu
             swtpmStorageDir: /var/tmp/embed/lib/swtpm
       defaultTLSx509certdir: /var/tmp/embed/etc/pki/qemu
      
      These are identical whether the embedded driver is privileged
      or unprivileged.
      
      This compares with the system instance which uses
      
                      logDir: /var/log/libvirt/qemu
                 swtpmLogDir: /var/log/swtpm/libvirt/qemu
               configBaseDir: /etc/libvirt/qemu
                    stateDir: /run/libvirt/qemu
               swtpmStateDir: /run/libvirt/qemu/swtpm
                    cacheDir: /var/cache/libvirt/qemu
                      libDir: /var/lib/libvirt/qemu
             swtpmStorageDir: /var/lib/libvirt/swtpm
       defaultTLSx509certdir: /etc/pki/qemu
      
      At this time all features present in the QEMU driver are available when
      running in embedded mode, availability matching whether the embedded
      driver is privileged or unprivileged.
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      068efae5
  3. 12 12月, 2019 1 次提交
    • D
      qemu: keep capabilities when running QEMU as root · 19023562
      Daniel P. Berrangé 提交于
      When QEMU uid/gid is set to non-root this is pointless as if we just
      used a regular setuid/setgid call, the process will have all its
      capabilities cleared anyway by the kernel.
      
      When QEMU uid/gid is set to root, this is almost (always?) never
      what people actually want. People make QEMU run as root in order
      to access some privileged resource that libvirt doesn't support
      yet and this often requires capabilities. As a result they have
      to go find the qemu.conf param to turn this off. This is not
      viable for libguestfs - they want to control everything via the
      XML security label to request running as root regardless of the
      qemu.conf settings for user/group.
      
      Clearing capabilities was implemented originally because there
      was a proposal in Fedora to change permissions such that root,
      with no capabilities would not be able to compromise the system.
      ie a locked down root account. This never went anywhere though,
      and as a result clearing capabilities when running as root does
      not really get us any security benefit AFAICT. The root user
      can easily do something like create a cronjob, which will then
      faithfully be run with full capabilities, trivially bypassing
      the restriction we place.
      
      IOW, our clearing of capabilities is both useless from a security
      POV, and breaks valid use cases when people need to run as root.
      
      This removes the clear_emulator_capabilities configuration
      option from qemu.conf, and always runs QEMU with capabilities
      when root.  The behaviour when non-root is unchanged.
      Reviewed-by: NCole Robinson <crobinso@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      19023562
  4. 17 7月, 2019 2 次提交
  5. 01 7月, 2019 1 次提交
  6. 27 6月, 2019 1 次提交
  7. 21 6月, 2019 1 次提交
  8. 20 6月, 2019 4 次提交
  9. 19 2月, 2019 1 次提交
  10. 01 2月, 2019 1 次提交
  11. 31 1月, 2019 1 次提交
  12. 23 10月, 2018 1 次提交
  13. 12 6月, 2018 1 次提交
  14. 01 4月, 2018 1 次提交
  15. 17 11月, 2017 1 次提交
  16. 16 10月, 2017 1 次提交
  17. 03 8月, 2017 2 次提交
  18. 10 11月, 2015 2 次提交
  19. 03 5月, 2013 2 次提交
    • D
      Fix docs generator regression in previous commit · 7ee85c99
      Daniel P. Berrange 提交于
      The previous commit failed to update the XSL to take account
      of fact that in XHTML mode the elements need namespace
      prefixes. This caused every web page to be blank!
      7ee85c99
    • D
      Fix multiple formatting problems in HTML docs · f2f9742d
      Daniel P. Berrange 提交于
      The rule generating the HTML docs passing the --html flag
      to xsltproc. This makes it use the legacy HTML parser, which
      either ignores or tries to fix all sorts of broken XML tags.
      There's no reason why we should be writing broken XML in
      the first place, so removing --html and adding the XHTML
      doctype to all files forces us to create good XML.
      
      This adds the XHTML doc type and fixes many, many XML tag
      problems it exposes.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      f2f9742d
  20. 23 8月, 2012 1 次提交
  21. 29 2月, 2012 1 次提交
  22. 07 2月, 2012 1 次提交
    • D
      Clarify the purpose of domxml-from-native · 10cc08ee
      Dave Allan 提交于
      Someone mentioned to me that they interpreted this section of the KVM
      driver page as suggesting that new guests should be created by
      creating a qemu commandline and converting it to XML with
      domxml-from-native.  I don't think that's the intent of
      domxml-from-native, so I added that clarification.
      10cc08ee
  23. 20 12月, 2011 1 次提交
  24. 27 8月, 2011 1 次提交
  25. 16 7月, 2011 1 次提交
    • D
      website: Point main page links to libvirt driver pages · e5adda7e
      Dave Allan 提交于
      The "libvirt supports:" section on the main page of libvirt.org
      contains a list of hypervisors with links that point to the sites of
      the underlying virt technologies.  The entry for KVM points to
      http://www.linux-kvm.org/, for example.  People coming to libvirt.org
      for the first time are likely to know about those sites, and they're
      probably interested in how libvirt manages those technologies.  This
      patch points those links to the libvirt driver pages instead.  It also
      consolidates KVM and QEMU as there is only one libvirt driver page for
      them.  Finally, it adds a line about networking support.
      
      v2: incorporate Eric's feedback adding project links to driver pages.
      
      website: Add project links to KVM/QEMU driver page
      website: Add project links to Xen driver page
      website: Add project links to LXC driver page
      website: Add project links to OpenVZ driver page
      website: Add project links to UML driver page
      website: Add project links to Virtualbox driver page
      website: Add project links to ESX driver page
      website: Add project links to VMware driver page
      e5adda7e
  26. 08 7月, 2011 1 次提交
  27. 02 11月, 2010 1 次提交
  28. 30 11月, 2009 1 次提交
  29. 17 11月, 2009 1 次提交
  30. 06 11月, 2009 1 次提交
    • M
      Cleanup whitespace in docs · c6d5ac17
      Matthew Booth 提交于
      This patch is the result of running the following command in the docs
      directory: sed -i 's/\t/        /g; s/\s*$//' *.html.in
      
      * docs/*.html.in:convert tabs into 8 spaces and remove trailing whitespace
      c6d5ac17
  31. 08 10月, 2009 1 次提交
    • J
      Documentation and examples for SVirt Apparmor driver · 624a7927
      Jamie Strandboge 提交于
      * docs/drvqemu.html.in: include documentation for AppArmor sVirt
        confinement
      * examples/apparmor/TEMPLATE examples/apparmor/libvirt-qemu
        examples/apparmor/usr.lib.libvirt.virt-aa-helper
        examples/apparmor/usr.sbin.libvirtd: example templates and
        configuration files for SVirt Apparmor when using KVM/QEmu
      624a7927
  32. 30 9月, 2009 1 次提交
  33. 20 8月, 2009 1 次提交