Skip to content

Commit

Permalink
Added audit and policy as resource types
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h-abdelsalam committed Aug 22, 2024
1 parent b819b7c commit 30a40cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gsad_validator.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,9 @@ init_validator ()
gvm_validator_add (validator, "port_range_id", "^[a-z0-9\\-]+$");
gvm_validator_add (
validator, "resource_type",
"^(alert|asset|audit_report|cert_bund_adv|config|cpe|credential|cve|"
"^(alert|asset|audit_report|audit|cert_bund_adv|config|cpe|credential|cve|"
"dfn_cert_adv|filter|group|host|info|nvt|note|os|ovaldef|override|"
"permission|port_list|report|report_config|report_format|result|role|scanner|"
"permission|policy|port_list|report|report_config|report_format|result|role|scanner|"
"schedule|tag|target|task|ticket|tls_certificate|user|vuln|)$");
gvm_validator_add (validator, "resource_id", "^[[:alnum:]\\-_.:\\/~]*$");
gvm_validator_add (validator, "resources_action", "^(|add|set|remove)$");
Expand Down

0 comments on commit 30a40cd

Please sign in to comment.