提交 aafe4197 编写于 作者: J John Ferlan 提交者: Eric Blake

nwfilter: Remove unprivileged code path to set base

Commit id f8ab364c removed ability to run this driver unprivileged. Coverity
detected the check and flagged it.
上级 d507b971
......@@ -219,14 +219,8 @@ nwfilterDriverStartup(bool privileged ATTRIBUTE_UNUSED,
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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册