]> xenbits.xensource.com Git - libvirt.git/commit
selinux: fix wrong tapfd relablling
authorGuannan Ren <gren@redhat.com>
Wed, 17 Oct 2012 03:23:19 +0000 (11:23 +0800)
committerGuannan Ren <gren@redhat.com>
Wed, 17 Oct 2012 05:13:14 +0000 (13:13 +0800)
commit89b63f0ad448a0442f4afc5489748e2cc829e527
tree64dfd8808efe269021765d75759aa8c0615f3d5a
parent9f0e9cba27b3e2b8409f2ce1c0ed4d24d677be9b
selinux: fix wrong tapfd relablling

It should relabel tapfd of virtual network of type VIR_DOMAIN_NET_TYPE_DIRECT
rather than VIR_DOMAIN_NET_TYPE_NETWORK and VIR_DOMAIN_NET_TYPE_BRIDGE
(commit ae368ebfcc4923d0b32e83d4ca96a6f599625785 introduced this bug)

Caution: The context of the two hunks is identical other than indentation.
Please be extremely cautious of where the patch gets applied.
src/qemu/qemu_command.c