From cf0275a0493f585cbf863547218ddd2d5de3cd54 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 6 Jun 2011 16:08:29 -0700 Subject: [PATCH] Make FAKE_AUDIT work again --- Shorewall/Perl/Shorewall/Chains.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index f29e8c870..832612675 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -333,7 +333,6 @@ our $family; # my %builtin_target = ( ACCEPT => 1, ACCOUNT => 1, - AUDIT => 1, CHAOS => 1, CHECKSUM => 1, CLASSIFY => 1, @@ -1657,7 +1656,12 @@ sub initialize_chain_table($) { # # Create these chains early in case they are needed by Policy actions # - dont_delete new_standard_chain 'AUDIT', 0 if $config{FAKE_AUDIT}; + if ( $config{FAKE_AUDIT} ) { + dont_delete new_standard_chain 'AUDIT', 0; + } else { + $builtin_target{AUDIT} = 111; + } + dont_move new_standard_chain 'reject'; } }