1. 17 2月, 2017 9 次提交
  2. 16 2月, 2017 5 次提交
  3. 15 2月, 2017 6 次提交
    • M
      qemu_conf: Properly check for retval of qemuDomainNamespaceAvailable · 27ac5f37
      Michal Privoznik 提交于
      This function is returning a boolean therefore check for '< 0'
      makes no sense. It should have been
      '!qemuDomainNamespaceAvailable'.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      27ac5f37
    • M
      qemu_conf: Check for namespaces availability more wisely · b57bd206
      Michal Privoznik 提交于
      The bare fact that mnt namespace is available is not enough for
      us to allow/enable qemu namespaces feature. There are other
      requirements: we must copy all the ACL & SELinux labels otherwise
      we might grant access that is administratively forbidden or vice
      versa.
      At the same time, the check for namespace prerequisites is moved
      from domain startup time to qemu.conf parser as it doesn't make
      much sense to allow users to start misconfigured libvirt just to
      find out they can't start a single domain.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      b57bd206
    • J
      apparmor: don't fail on non-apparmor <seclabel> · ec94e14b
      Jim Fehlig 提交于
      If the apparmor security driver is loaded/enabled and domain config
      contains a <seclabel> element whose type attribute is not 'apparmor',
      starting the domain fails when attempting to label resources such
      as tap FDs.
      
      Many of the apparmor driver entry points attempt to retrieve the
      apparmor security label from the domain def, returning failure if
      not found. Functions such as AppArmorSetFDLabel fail even though
      domain config contains an explicit 'none' secuirty driver, e.g.
      
        <seclabel type='none' model='none'/>
      
      Change the entry points to succeed if the domain config <seclabel>
      is not apparmor. This matches the behavior of the selinux driver.
      ec94e14b
    • J
      apparmor: don't overwrite error from reload_profile · 5cdfc80b
      Jim Fehlig 提交于
      Like other callers of reload_profile, don't overwrite errors in
      AppArmorSetSecurityHostdevLabelHelper.
      5cdfc80b
    • J
      qemu_monitor_json: Properly check GetArray return value · 598b6d79
      Jiri Denemark 提交于
      Commit 2a8d40f4 refactored qemuMonitorJSONGetCPUx86Data and replaced
      virJSONValueObjectGet(reply, "return") with virJSONValueObjectGetArray.
      While the former is guaranteed to always return non-NULL pointer the
      latter may return NULL if the returned JSON object is not an array.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      598b6d79
    • A
      qemu: Call chmod() after mknod() · ee6ec782
      Andrea Bolognani 提交于
      mknod() is affected my the current umask, so we're not
      guaranteed the newly-created device node will have the
      right permissions.
      
      Call chmod(), which is not affected by the current umask,
      immediately afterwards to solve the issue.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1421036
      ee6ec782
  4. 14 2月, 2017 1 次提交
    • J
      util: fix off-by-one when expanding a bitmap · 4a41cf18
      Ján Tomko 提交于
      To make sure bit 'b' fits into the bitmap, we need to allocate b+1
      bits, since we number from 0.
      
      Adjust the bitmap test to set a bit at a multiple of 16.
      That way the test fails without this fix, because the VIR_REALLOC
      call clears the newly added memory even if the original pointer
      has not changed.
      4a41cf18
  5. 13 2月, 2017 4 次提交
  6. 11 2月, 2017 6 次提交
  7. 10 2月, 2017 9 次提交