forked from extern/shorewall_code
Remove 'audit' parameter handling from new state actions.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
f407068d20
commit
8d28c44946
@ -29,7 +29,7 @@
|
|||||||
##########################################################################################
|
##########################################################################################
|
||||||
?FORMAT 2
|
?FORMAT 2
|
||||||
|
|
||||||
DEFAULTS DROP,-
|
DEFAULTS DROP
|
||||||
|
|
||||||
?BEGIN PERL;
|
?BEGIN PERL;
|
||||||
|
|
||||||
@ -38,12 +38,7 @@ use Shorewall::Config;
|
|||||||
use Shorewall::Chains;
|
use Shorewall::Chains;
|
||||||
use Shorewall::Rules qw( process_rule1 );
|
use Shorewall::Rules qw( process_rule1 );
|
||||||
|
|
||||||
my ( $action, $audit ) = get_action_params( 2 );
|
my ( $action ) = get_action_params( 1 );
|
||||||
|
|
||||||
if ( supplied $audit ) {
|
|
||||||
fatal_error "Established parameter ($audit) to action Established" if $audit ne 'audit';
|
|
||||||
$action = "A_$action";
|
|
||||||
}
|
|
||||||
|
|
||||||
my ( $level, $tag ) = get_action_logging;
|
my ( $level, $tag ) = get_action_logging;
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
##########################################################################################
|
##########################################################################################
|
||||||
?FORMAT 2
|
?FORMAT 2
|
||||||
|
|
||||||
DEFAULTS DROP,-
|
DEFAULTS DROP
|
||||||
|
|
||||||
?BEGIN PERL;
|
?BEGIN PERL;
|
||||||
|
|
||||||
@ -39,12 +39,7 @@ use Shorewall::Config;
|
|||||||
use Shorewall::Chains;
|
use Shorewall::Chains;
|
||||||
use Shorewall::Rules qw( process_rule1 );
|
use Shorewall::Rules qw( process_rule1 );
|
||||||
|
|
||||||
my ( $action, $audit ) = get_action_params( 2 );
|
my ( $action ) = get_action_params( 1 );
|
||||||
|
|
||||||
if ( supplied $audit ) {
|
|
||||||
fatal_error "Related parameter ($audit) to action Related" if $audit ne 'audit';
|
|
||||||
$action = "A_$action";
|
|
||||||
}
|
|
||||||
|
|
||||||
my ( $level, $tag ) = get_action_logging;
|
my ( $level, $tag ) = get_action_logging;
|
||||||
|
|
||||||
|
@ -38,12 +38,7 @@ use Shorewall::Config;
|
|||||||
use Shorewall::Chains;
|
use Shorewall::Chains;
|
||||||
use Shorewall::Rules qw( process_rule1 );
|
use Shorewall::Rules qw( process_rule1 );
|
||||||
|
|
||||||
my ( $action, $audit ) = get_action_params( 2 );
|
my ( $action ) = get_action_params( 1 );
|
||||||
|
|
||||||
if ( supplied $audit ) {
|
|
||||||
fatal_error "Untracked parameter ($audit) to action Untracked" if $audit ne 'audit';
|
|
||||||
$action = "A_$action";
|
|
||||||
}
|
|
||||||
|
|
||||||
my ( $level, $tag ) = get_action_logging;
|
my ( $level, $tag ) = get_action_logging;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user