Fix license issues in cargo-deny config and refactor YARA compiler usage
This commit is contained in:
@@ -9,6 +9,8 @@ allow = [
|
||||
"Unlicense",
|
||||
"Zlib",
|
||||
"Unicode-3.0",
|
||||
"BSD-3-Clause",
|
||||
"ISC",
|
||||
]
|
||||
confidence-threshold = 0.8
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user