Fix license issues in cargo-deny config and refactor YARA compiler usage

This commit is contained in:
pandaadir05
2025-11-21 01:49:28 +02:00
parent 67d3ab9ed5
commit 10cf5551ff
2 changed files with 9 additions and 8 deletions

View File

@@ -9,6 +9,8 @@ allow = [
"Unlicense",
"Zlib",
"Unicode-3.0",
"BSD-3-Clause",
"ISC",
]
confidence-threshold = 0.8

View File

@@ -179,14 +179,13 @@ impl DynamicYaraEngine {
});
}
self.compiled_rules =
Some(
compiler
.compile_rules()
.map_err(|e| GhostError::Configuration {
message: format!("Rule compilation failed: {}", e),
})?,
);
self.compiled_rules = Some(
compiler
.compile_rules()
.map_err(|e| GhostError::Configuration {
message: format!("Rule compilation failed: {}", e),
})?,
);
log::info!("Successfully compiled {} YARA rules", rule_count);
Ok(rule_count)