Correct generation of the blacklog chain when disposition is audited

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-04-10 16:43:38 -07:00
parent 186f71fa96
commit ee2e85c0fb
2 changed files with 4 additions and 1 deletions

View File

@ -2516,6 +2516,9 @@ sub ensure_audit_blacklog_chain( $$$ ) {
log_rule_limit( $level , $logchainref , 'blacklst' , $disposition , "$globals{LOGLIMIT}" , '', 'add', '' ); log_rule_limit( $level , $logchainref , 'blacklst' , $disposition , "$globals{LOGLIMIT}" , '', 'add', '' );
add_ijump( $logchainref, j => 'AUDIT', targetopts => '--type ' . lc $target ); add_ijump( $logchainref, j => 'AUDIT', targetopts => '--type ' . lc $target );
$target =~ s/^A_//;
add_ijump( $logchainref, g => $target ); add_ijump( $logchainref, g => $target );
} }

View File

@ -1165,7 +1165,7 @@ sub setup_mac_lists( $ ) {
my $target = $globals{MACLIST_TARGET}; my $target = $globals{MACLIST_TARGET};
my $level = $config{MACLIST_LOG_LEVEL}; my $level = $config{MACLIST_LOG_LEVEL};
my $disposition = $config{MACLIST_DISPOSITION}; my $disposition = $config{MACLIST_DISPOSITION};
my $audit = $disposition =~ s/^A_//; my $audit = ( $disposition =~ s/^A_// );
my $ttl = $config{MACLIST_TTL}; my $ttl = $config{MACLIST_TTL};
progress_message2 "$doing MAC Filtration -- Phase $phase..."; progress_message2 "$doing MAC Filtration -- Phase $phase...";