On 04/24/2012 12:11 PM, Daniel P. Berrange wrote:
On Tue, Apr 24, 2012 at 12:01:38PM -0400, Stefan Berger wrote:
>
Yeah the DBus connection handshake being repeated soo many times, causing
many many context switches for each single rule to be added.
I wonder if firewall-cmd could be extended to allow multiple rules to
be specified at once. It'd just need some kind of character to be
designated as the separator for each rule.
Certainly this would be helpful for some applications. For nwfilter also
this feature would require a bigger change since different form of
formatting for the batching would be required. Also sometimes nwfilter
needs control over the return status of a particular command while at
other times commands can run without looking at their return status.
Stefan