mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
Disable NWFilter driver completely when unprivileged
Running libvirtd unprivileged results in a warning message from the NWFilter driver virNWFilterSnoopLeaseFileRefresh:1882 : open("/var/run/libvirt/network/nwfilter.ltmp"): No such file or directory Since it requires privileged network access, this driver should not even run when unprivileged. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
e48daff7bb
commit
f8ab364c5f
@ -68,6 +68,9 @@ static int
|
|||||||
nwfilterDriverStartup(int privileged) {
|
nwfilterDriverStartup(int privileged) {
|
||||||
char *base = NULL;
|
char *base = NULL;
|
||||||
|
|
||||||
|
if (!privileged)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (virNWFilterIPAddrMapInit() < 0)
|
if (virNWFilterIPAddrMapInit() < 0)
|
||||||
return -1;
|
return -1;
|
||||||
if (virNWFilterLearnInit() < 0)
|
if (virNWFilterLearnInit() < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user