3a0ca7d Introduce an object for managing firewall rulesets

Authored and Committed by berrange 10 years ago
    Introduce an object for managing firewall rulesets
    
    The network and nwfilter drivers both have a need to update
    firewall rules. The currently share no code for interacting
    with iptables / firewalld. The nwfilter driver is fairly
    tied to the concept of creating shell scripts to execute
    which makes it very hard to port to talk to firewalld via
    DBus APIs.
    
    This patch introduces a virFirewallPtr object which is able
    to represent a complete sequence of rule changes, with the
    ability to have multiple transactional checkpoints with
    rollbacks. By formally separating the definition of the rules
    to be applied from the mechanism used to apply them, it is
    also possible to write a firewall engine that uses firewalld
    DBus APIs natively instead of via the slow firewalld-cmd.
    
    Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
    
        
file modified
+1 -0
file modified
+1 -0
file modified
+2 -0
file modified
+17 -0
file modified
+1 -0
file added
+932
file added
+109
file modified
+6 -0
file modified
+14 -4
file added
+1186