]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Disable nwfilter driver when running unprivileged
authorJán Tomko <jtomko@redhat.com>
Tue, 12 Nov 2013 12:18:54 +0000 (13:18 +0100)
committerJán Tomko <jtomko@redhat.com>
Wed, 13 Nov 2013 09:36:04 +0000 (10:36 +0100)
commit22a1dd9591c4bc877a1dc4c9f61286a4f4b0527a
treefe50764bba0a1e9a5b75e0af2027c7460f8e5ba3
parente20a2c775a07aad3a5309785dd75909aacc48d95
Disable nwfilter driver when running unprivileged

When opening a new connection to the driver, nwfilterOpen
only succeeds if the driverState has been allocated.

Move the privilege check in driver initialization before
the state allocation to disable the driver.

This changes the nwfilter-define error from:
error: cannot create config directory (null): Bad address
To:
this function is not supported by the connection driver:
virNWFilterDefineXML

https://bugzilla.redhat.com/show_bug.cgi?id=1029266
(cherry picked from commit b7829f959b33c6e32422222a9ed745c0da7dc696)
src/nwfilter/nwfilter_driver.c