storage: Really fix setting mode for backend exec in NFS root-squash env
storage: Really fix setting mode for backend exec in NFS root-squash env

https://bugzilla.redhat.com/show_bug.cgi?id=1282288

Although commit id '77346f27' resolves part of the problem regarding creating
a qemu-img image in an NFS root-squash environment, it really didn't fix the
entire problem. Unfortunately it only masked the problem. It seems qemu-img
must open/create the image using 0644, which if used by target.perms would
result in the chmod not being called since the mode desired and set match.

Although qemu-img could conceivably ignore the mode when creating, libvirt
has more knowledge of the environment and can make the adjustment to the
mode far more easily by using virFileOpenAs with VIR_FILE_OPEN_FORCE_MODE.
If that's successful, then we know on return the file will have the right
owner and mode, so we can declare success

eskultety/libvirt,libvirt/libvirt,zippy2/libvirt,crobinso/libvirt,jardasgit/libvirt,taget/libvirt,datto/libvirt,rlaager/libvirt,jardasgit/libvirt,crobinso/libvirt,olafhering/libvirt,olafhering/libvirt,datto/libvirt,crobinso/libvirt,eskultety/libvirt,zippy2/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,taget/libvirt,VenkatDatta/libvirt,jfehlig/libvirt,rlaager/libvirt,rlaager/libvirt,eskultety/libvirt,jardasgit/libvirt,taget/libvirt,olafhering/libvirt,eskultety/libvirt,nertpinx/libvirt,jardasgit/libvirt,libvirt/libvirt,rlaager/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,andreabolognani/libvirt,datto/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,jfehlig/libvirt,zippy2/libvirt,rlaager/libvirt,nertpinx/libvirt,libvirt/libvirt,taget/libvirt,eskultety/libvirt,fabianfreyer/libvirt,libvirt/libvirt,taget/libvirt,jfehlig/libvirt,jardasgit/libvirt,zippy2/libvirt,datto/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,olafhering/libvirt,crobinso/libvirt,datto/libvirt,jfehlig/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,nertpinx/libvirt