Additional editing of audit action parameters.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2016-03-13 15:28:49 -07:00
parent 6be4fd377f
commit 8e7af2e95e

View File

@ -3303,7 +3303,8 @@ sub setup_audit_action( $ ) {
if ( supplied $audit ) { if ( supplied $audit ) {
fatal_error "Invalid parameter ($audit) to action $action" if $audit ne 'audit'; fatal_error "Invalid parameter ($audit) to action $action" if $audit ne 'audit';
$actparms{1} = "A_$target"; fatal_error "Only ACCEPT, DROP and REJECT may be audited" unless $target =~ /^(?:A_)?(?:ACCEPT|DROP|REJECT)\b/;
$actparms{1} = "A_$target" unless $target =~ /^A_/;
} }
} }