network: avoid trying to create global firewall rules if unprivileged
network: avoid trying to create global firewall rules if unprivileged

The unprivileged libvirtd does not have permission to create firewall
rules, or bridge devices, or do anything to the host network in
general. Historically we still activate the network driver though and
let the network start API call fail.

The startup code path which reloads firewall rules on active networks
would thus effectively be a no-op when unprivileged as it is impossible
for there to be any active networks

With the change to use a global set of firewall chains, however, we now
have code that is run unconditionally.

Ideally we would not register the network driver at all when
unprivileged, but the entanglement with the virt drivers currently makes
that impractical. As a temporary hack, we just make the firewall reload
into a no-op.

Signed-off-by: Daniel P. Berrangé <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

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