]> git.ipfire.org Git - thirdparty/libvirt.git/commit
selinux: fix wrong tapfd relablling
authorGuannan Ren <gren@redhat.com>
Wed, 17 Oct 2012 03:23:19 +0000 (11:23 +0800)
committerCole Robinson <crobinso@redhat.com>
Sat, 27 Oct 2012 18:58:12 +0000 (14:58 -0400)
commit2716c78c3feecbda66bde865aaf5d262fd335739
tree783dfb274fd0b85ff52e935f79996982b7f51f6c
parente620a97a949d2bd9a9e6bf5b1c52b80c1c4031fd
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.
(cherry picked from commit 89b63f0ad448a0442f4afc5489748e2cc829e527)
src/qemu/qemu_command.c