mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-08 16:54:10 +01:00
Additional editing of audit action parameters.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
6be4fd377f
commit
8e7af2e95e
@ -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_/;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user