1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-21 18:57:14 +01:00

partial fix for bugs #1789059 and 1945149

This commit is contained in:
Vadim Kurland 2008-05-08 19:05:07 +00:00
parent 14bc0e2651
commit 4ff6f887df
2 changed files with 19 additions and 2 deletions

View File

@ -1,3 +1,18 @@
2008-05-08 vadim <vadim@vk.crocodile.org>
* PolicyCompiler.cpp (PolicyCompiler::checkForShadowing): (from
2.1): partial fix for bugs #1789059 "shadow issue when using
action chain" and #1945149: "Shadowing test for rules with action
"chain". The mechanism for rule shadowing detection we have at
this time can only detect shadowing of one rule by another. In
case of branching it is a combination of the branching rule and
rules inside the branch that may shadow other rules. I plan to
redesign this part of the code in the future, but it won't happen
in upcoming v3.
Meanwhile, I am fixing it in 2.1 by making compiler ignore rules
with action Branch.
2008-05-05 vadim <vadim@vk.crocodile.org>
* PolicyCompiler_pf_writers.cpp (PrintRule::processNext),

View File

@ -3629,11 +3629,13 @@ void PolicyCompiler_ipt::compile()
if ( fw->getOptionsObject()->getBool ("check_shading") )
{
add( new Begin("Detecting rule shadowing" ) );
add( new Begin("Detecting rule shadowing"));
add( new Branching("fold in branches"));
addRuleFilter();
add( new printTotalNumberOfRules( ) );
add( new printTotalNumberOfRules());
add( new ItfNegation( "process negation in Itf" ) );
add( new InterfacePolicyRules(