]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: new virFirewallD APIs + docs
authorLaine Stump <laine@laine.org>
Wed, 9 Jan 2019 19:40:51 +0000 (14:40 -0500)
committerLaine Stump <laine@laine.org>
Fri, 1 Feb 2019 17:08:37 +0000 (12:08 -0500)
commit3bba4825c291e51a8cd4d497d6e919ac2ee96ff0
tree8e80adee225520a0c2ec138f00c30c58aeb7710f
parentd8393b56e21708c219acc9bcd24a9c22ead4a3b4
util: new virFirewallD APIs + docs

virFirewallDGetBackend() reports whether firewalld is currently using
an iptables or an nftables backend.

virFirewallDGetVersion() learns the version of the firewalld running
on this system and returns it as 1000000*major + 1000*minor + micro.

virFirewallDGetZones() gets a list of all currently active firewalld
zones.

virFirewallDInterfaceSetZone() sets the firewalld zone of the given
interface.

virFirewallDZoneExists() can be used to learn whether or not a
particular zone is present and active in firewalld.

Signed-off-by: Laine Stump <laine@laine.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/libvirt_private.syms
src/util/virfirewalld.c
src/util/virfirewalld.h