mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
qemu: cgroup: fix cgroup permission logic
Fix logic error introduced in commit d6c91b3c which essentially broke starting any domain. Signed-off-by: Bjoern Walk <bwalk@linux.vnet.ibm.com>
This commit is contained in:
parent
3ad5186ed3
commit
65c4c7d850
@ -65,7 +65,7 @@ qemuSetupImagePathCgroup(virDomainObjPtr vm,
|
||||
if (!virCgroupHasController(priv->cgroup, VIR_CGROUP_CONTROLLER_DEVICES))
|
||||
return 0;
|
||||
|
||||
if (readonly)
|
||||
if (!readonly)
|
||||
perms |= VIR_CGROUP_DEVICE_WRITE;
|
||||
|
||||
VIR_DEBUG("Allow path %s, perms: %s",
|
||||
|
Loading…
x
Reference in New Issue
Block a user