mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-05 11:19:29 +00:00
nwfilter: Remove unprivileged code path to set base
https://bugzilla.redhat.com/show_bug.cgi?id=903184 Commit id f8ab364c removed ability to run this driver unprivileged. Coverity detected the check and flagged it. (cherry picked from commit aafe41971cc3f4a189edf5b322f399aabd869d74) Conflicts: src/nwfilter/nwfilter_driver.c - whitespace changes in 1c04f99 not present
This commit is contained in:
parent
ba4e7b6344
commit
c52667e241
@ -218,14 +218,8 @@ nwfilterDriverStartup(int privileged)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (privileged) {
|
||||
if ((base = strdup (SYSCONFDIR "/libvirt")) == NULL)
|
||||
goto out_of_memory;
|
||||
} else {
|
||||
base = virGetUserConfigDirectory();
|
||||
if (!base)
|
||||
goto error;
|
||||
}
|
||||
if ((base = strdup(SYSCONFDIR "/libvirt")) == NULL)
|
||||
goto out_of_memory;
|
||||
|
||||
if (virAsprintf(&driverState->configDir,
|
||||
"%s/nwfilter", base) == -1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user