On 01/04/2011 08:45 PM, Alex Williamson wrote:
The PCI sysfs rom file is exposed read-only by default, but we need to write to it to enable and disable the ROM around the read. When running as root, the code works fine as is, but when running de-privileged via libvirt, the fopen("r+") will fail if the file doesn't have owner write permissions. libvirt already gives us ownership of the file, so we can toggle this around the short usage window ourselves.
Why is qemu in the business of chmod()ing resources? If qemu needs write access to some resource, the user needs to provide that access.
-- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html