mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
qemuSetupChrSourceCgroup: rename dev to source
We do not have a pointer to the device here, just its source.
This commit is contained in:
parent
b8286f0666
commit
eebe58adeb
@ -150,20 +150,20 @@ qemuTeardownDiskCgroup(virDomainObjPtr vm,
|
||||
|
||||
static int
|
||||
qemuSetupChrSourceCgroup(virDomainObjPtr vm,
|
||||
virDomainChrSourceDefPtr dev)
|
||||
virDomainChrSourceDefPtr source)
|
||||
{
|
||||
qemuDomainObjPrivatePtr priv = vm->privateData;
|
||||
int ret;
|
||||
|
||||
if (dev->type != VIR_DOMAIN_CHR_TYPE_DEV)
|
||||
if (source->type != VIR_DOMAIN_CHR_TYPE_DEV)
|
||||
return 0;
|
||||
|
||||
VIR_DEBUG("Process path '%s' for device", dev->data.file.path);
|
||||
VIR_DEBUG("Process path '%s' for device", source->data.file.path);
|
||||
|
||||
ret = virCgroupAllowDevicePath(priv->cgroup, dev->data.file.path,
|
||||
ret = virCgroupAllowDevicePath(priv->cgroup, source->data.file.path,
|
||||
VIR_CGROUP_DEVICE_RW);
|
||||
virDomainAuditCgroupPath(vm, priv->cgroup, "allow",
|
||||
dev->data.file.path, "rw", ret == 0);
|
||||
source->data.file.path, "rw", ret == 0);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user