Remove 'audit' parameter handling from new state actions.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-01-30 10:45:10 -08:00
parent f407068d20
commit 8d28c44946
3 changed files with 5 additions and 20 deletions

View File

@ -29,7 +29,7 @@
##########################################################################################
?FORMAT 2
DEFAULTS DROP,-
DEFAULTS DROP
?BEGIN PERL;
@ -38,12 +38,7 @@ use Shorewall::Config;
use Shorewall::Chains;
use Shorewall::Rules qw( process_rule1 );
my ( $action, $audit ) = get_action_params( 2 );
if ( supplied $audit ) {
fatal_error "Established parameter ($audit) to action Established" if $audit ne 'audit';
$action = "A_$action";
}
my ( $action ) = get_action_params( 1 );
my ( $level, $tag ) = get_action_logging;

View File

@ -29,7 +29,7 @@
##########################################################################################
?FORMAT 2
DEFAULTS DROP,-
DEFAULTS DROP
?BEGIN PERL;
@ -39,12 +39,7 @@ use Shorewall::Config;
use Shorewall::Chains;
use Shorewall::Rules qw( process_rule1 );
my ( $action, $audit ) = get_action_params( 2 );
if ( supplied $audit ) {
fatal_error "Related parameter ($audit) to action Related" if $audit ne 'audit';
$action = "A_$action";
}
my ( $action ) = get_action_params( 1 );
my ( $level, $tag ) = get_action_logging;

View File

@ -38,12 +38,7 @@ use Shorewall::Config;
use Shorewall::Chains;
use Shorewall::Rules qw( process_rule1 );
my ( $action, $audit ) = get_action_params( 2 );
if ( supplied $audit ) {
fatal_error "Untracked parameter ($audit) to action Untracked" if $audit ne 'audit';
$action = "A_$action";
}
my ( $action ) = get_action_params( 1 );
my ( $level, $tag ) = get_action_logging;