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
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)