• M
    qemu: Don't overwrite security labels · 86032b22
    Michal Privoznik 提交于
    Currently, if qemuProcessStart fail at some point, e.g. because
    domain being started wants a PCI/USB device already assigned to
    a different domain, we jump to cleanup label where qemuProcessStop
    is performed. This unconditionally calls virSecurityManagerRestoreAllLabel
    which is wrong because the other domain is still using those devices.
    
    However, once we successfully label all devices/paths in
    qemuProcessStart() from that point on, we have to perform a rollback
    on failure - that is - we have to virSecurityManagerRestoreAllLabel.
    86032b22
qemu_process.h 3.9 KB