From 6554f7fe28f3fc71aaa538e437e5038810368215 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 4 Sep 2015 11:16:07 -0700 Subject: [PATCH] Disable bare SECTION in the rules file Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Rules.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index 60246f946..ea1d8fded 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -126,9 +126,9 @@ our @builtins; # # Commands that can be embedded in a basic rule and how many total tokens on the line (0 => unlimited). # -our $rule_commands = { SECTION => 2 }; -our $action_commands = { SECTION => 2, DEFAULTS => 2 }; -our $macro_commands = { SECTION => 2, DEFAULT => 2 }; +our $rule_commands = {}; +our $action_commands = { DEFAULTS => 2 }; +our $macro_commands = { DEFAULT => 2 }; # # There is an implicit assumption that the last column of the @rulecolumns hash is always the last column of the @columns array. # The @columns array doesn't include the ACTION but does include a 'wildcard' last element.