To facilitate debugging, add some more logging to LXC cgroup
devices ACL setup.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
goto cleanup;
}
+ VIR_DEBUG("Allowing any disk block devs");
for (i = 0; i < def->ndisks; i++) {
if (def->disks[i]->type != VIR_DOMAIN_DISK_TYPE_BLOCK)
continue;
goto cleanup;
}
+ VIR_DEBUG("Allowing any filesystem block devs");
for (i = 0; i < def->nfss; i++) {
if (def->fss[i]->type != VIR_DOMAIN_FS_TYPE_BLOCK)
continue;
goto cleanup;
}
+ VIR_DEBUG("Allowing any hostdev block devs");
for (i = 0; i < def->nhostdevs; i++) {
virDomainHostdevDefPtr hostdev = def->hostdevs[i];
virUSBDevicePtr usb;
VIR_CGROUP_DEVICE_RWM) < 0)
goto cleanup;
+ VIR_DEBUG("Device whitelist complete");
+
ret = 0;
cleanup:
return ret;