Validate log level in Policy File

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6903 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-07-18 18:21:45 +00:00
parent 7fc5e64349
commit e26dd87513
3 changed files with 6 additions and 1 deletions

View File

@ -9,6 +9,8 @@ Changes in 4.0.0 Final
4) Consolicate Common.pm + Config.pm and Interfaces.pm + Hosts.pm +
Zones.pm.
5) Validate log level in policy file.
Changes in 4.0.0 RC 2
1) Fix zone type check in Tunnels File.

View File

@ -38,6 +38,9 @@ Problems corrected in 4.0.0 Final.
specify SHOREWALL_COMPILER= and the original is saved in
shorewall.conf.rpmsave.
3) The contents of the LOG LEVEL column in /etc/shorewall/policy are
now validated at compile time by Shorewall-perl.
Other changes in Shorewall 4.0.0 Final.
1) The Perl modules in /usr/share/shorewall-perl/Shorewall/ have been

View File

@ -216,7 +216,7 @@ sub validate_policy()
push @policy_chains, ( $chainref );
}
$chainref->{loglevel} = $loglevel if defined $loglevel && $loglevel ne '';
$chainref->{loglevel} = validate_level( $loglevel ) if defined $loglevel && $loglevel ne '';
$chainref->{synparams} = do_ratelimit $synparams, 'ACCEPT' if $synparams ne '';
$chainref->{default} = $default if $default;