network: fix network driver startup for qemu:///session
network: fix network driver startup for qemu:///session

This should resolve https://bugzilla.redhat.com/show_bug.cgi?id=958907

Recent new addition of code to read/write active network state to the
NETWORK_STATE_DIR in the network driver broke startup for
qemu:///session. The network driver had several state file paths
hardcoded to /var, which could never possibly work in session mode.

This patch modifies *all* state files to use a variable string that is
set differently according to whether or not we're running
privileged. (It turns out that logDir was never used, so it's been
completely eliminated.)

There are very definitely other problems preventing dnsmasq and radvd
from running in non-privileged mode, but it's more consistent to have
the directories used by them be determined in the same fashion.

NB: I've noted before that the network driver is storing its state
(including dnsmasq and radvd state) in /var/lib, while qemu stores its
state in /var/run. It would probably have been better if the two
matched, but it's been this way for a long time, and changing it would
break running installations during an upgrade, so it's best to just
leave it as it is.

taget/libvirt,zippy2/libvirt,agx/libvirt,shugaoye/libvirt,zippy2/libvirt,crobinso/libvirt,libvirt/libvirt,rlaager/libvirt,jardasgit/libvirt,nertpinx/libvirt,jfehlig/libvirt,VenkatDatta/libvirt,rlaager/libvirt,eskultety/libvirt,jfehlig/libvirt,eskultety/libvirt,zhlcindy/libvirt-1.1.4-maintain,datto/libvirt,elmarco/libvirt,nertpinx/libvirt,olafhering/libvirt,eskultety/libvirt,olafhering/libvirt,shugaoye/libvirt,jardasgit/libvirt,cbosdo/libvirt,fabianfreyer/libvirt,elmarco/libvirt,libvirt/libvirt,fabianfreyer/libvirt,agx/libvirt,zhlcindy/libvirt-1.1.4-maintain,jardasgit/libvirt,taget/libvirt,shugaoye/libvirt,crobinso/libvirt,zhlcindy/libvirt-1.1.4-maintain,fabianfreyer/libvirt,cbosdo/libvirt,rlaager/libvirt,crobinso/libvirt,crobinso/libvirt,olafhering/libvirt,nertpinx/libvirt,agx/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,agx/libvirt,elmarco/libvirt,jfehlig/libvirt,taget/libvirt,taget/libvirt,cbosdo/libvirt,rlaager/libvirt,VenkatDatta/libvirt,eskultety/libvirt,jfehlig/libvirt,jardasgit/libvirt,zhlcindy/libvirt-1.1.4-maintain,VenkatDatta/libvirt,jardasgit/libvirt,elmarco/libvirt,elmarco/libvirt,andreabolognani/libvirt,datto/libvirt,eskultety/libvirt,agx/libvirt,datto/libvirt,cbosdo/libvirt,cbosdo/libvirt,datto/libvirt,zippy2/libvirt,shugaoye/libvirt,nertpinx/libvirt,VenkatDatta/libvirt,olafhering/libvirt,andreabolognani/libvirt,zhlcindy/libvirt-1.1.4-maintain,fabianfreyer/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,taget/libvirt,libvirt/libvirt,zippy2/libvirt,rlaager/libvirt,shugaoye/libvirt,datto/libvirt,libvirt/libvirt