[libvirt] [PATCH 1/4] conf: add rawio attribute to disk element of domain XML

Paolo Bonzini pbonzini at redhat.com
Mon Jan 30 11:02:37 UTC 2012


On 01/30/2012 10:08 AM, Taku Izumi wrote:
> +        /* cap_sys_rawio check */
> +        if (disk->rawio == 1&&
> +            (def->process_caps&  (1ULL<<  CAP_SYS_RAWIO)) == 0) {
> +            def->process_caps |= (1ULL<<  CAP_SYS_RAWIO);
> +            VIR_WARN("domain %s will be granted CAP_SYS_RAWIO", def->name);
> +        }
> +

This is missing tainting.

Also, I'm not sure that this code (and the tainting) would need to go 
here or rather in src/qemu.

Paolo




More information about the libvir-list mailing list