Re: [PATCH 1/1] virt-aa-helper: allow access to /dev/vhost-net if needed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/17/2014 09:20 PM, Serge Hallyn wrote:
> Only allow the access if it is a KVM domain which has a NIC which wants
> non-userspace networking.
> 
> This addresses https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1322568
> 
> Signed-off-by: Serge Hallyn <serge.hallyn@xxxxxxxxxx>
> ---
>  src/security/virt-aa-helper.c | 17 ++++++++++++++++-
>  1 file changed, 16 insertions(+), 1 deletion(-)
> 

> +++ b/src/security/virt-aa-helper.c
> @@ -929,7 +929,7 @@ get_files(vahControl * ctl)
>      size_t i;
>      char *uuid;
>      char uuidstr[VIR_UUID_STRING_BUFLEN];
> -    bool needsVfio = false;
> +    bool needsVfio = false, needsvhost = false;

I tend to split declarations like this across two lines, but it's
cosmetic, doesn't affect correctness, and isn't mentioned in HACKING.

ACK and pushed.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]