From 4b24bcd3957ae6e1c93f6641da5ef4b56e7ea6be Mon Sep 17 00:00:00 2001 From: Ahmed Abdelsalam Date: Tue, 13 Feb 2024 17:10:08 +0100 Subject: [PATCH] Added audit and policy as resource types --- src/gsad_validator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gsad_validator.c b/src/gsad_validator.c index 496cd8e44..0943a5c03 100644 --- a/src/gsad_validator.c +++ b/src/gsad_validator.c @@ -439,9 +439,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_format|result|role|scanner|" + "permission|policy|port_list|report|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)$");