vircgroupv2devices: Avoid double close on map FD
vircgroupv2devices: Avoid double close on map FD

When allowing/denying a device in devices CGroupV2 we have to
write a BPF program for it. The program we put there is merely
static and all it does it looks up a device in a hash table (also
known as map in BPF terminology). A map is referenced via an FD
which can be acquired via virBPFCreateMap() and like any other FD
it should be closed when no longer needed. However, we close it
twice: the first time in virCgroupV2DevicesAttachProg() which
closes it unconditionally, and the second time in either
virCgroupV2DevicesCreateProg() or
virCgroupV2DevicesPrepareProg(). Remove the second close.

Signed-off-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>
Reviewed-by: Pavel Hrdina <d4772d05997b8abf035041e3b4f4996380ea7e7a@redhat.com>

jfehlig/libvirt,crobinso/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,nertpinx/libvirt,nertpinx/libvirt,jfehlig/libvirt,zippy2/libvirt,jfehlig/libvirt,crobinso/libvirt,libvirt/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,jardasgit/libvirt,olafhering/libvirt,crobinso/libvirt,fabianfreyer/libvirt,olafhering/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,crobinso/libvirt,nertpinx/libvirt,olafhering/libvirt,jardasgit/libvirt,jfehlig/libvirt,olafhering/libvirt,libvirt/libvirt,zippy2/libvirt,zippy2/libvirt,nertpinx/libvirt,libvirt/libvirt,fabianfreyer/libvirt,libvirt/libvirt,zippy2/libvirt,jardasgit/libvirt