Fix license issues in cargo-deny config and refactor YARA compiler usage
This commit is contained in:
@@ -9,6 +9,8 @@ allow = [
|
|||||||
"Unlicense",
|
"Unlicense",
|
||||||
"Zlib",
|
"Zlib",
|
||||||
"Unicode-3.0",
|
"Unicode-3.0",
|
||||||
|
"BSD-3-Clause",
|
||||||
|
"ISC",
|
||||||
]
|
]
|
||||||
confidence-threshold = 0.8
|
confidence-threshold = 0.8
|
||||||
|
|
||||||
|
|||||||
@@ -179,14 +179,13 @@ impl DynamicYaraEngine {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
self.compiled_rules =
|
self.compiled_rules = Some(
|
||||||
Some(
|
compiler
|
||||||
compiler
|
.compile_rules()
|
||||||
.compile_rules()
|
.map_err(|e| GhostError::Configuration {
|
||||||
.map_err(|e| GhostError::Configuration {
|
message: format!("Rule compilation failed: {}", e),
|
||||||
message: format!("Rule compilation failed: {}", e),
|
})?,
|
||||||
})?,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
log::info!("Successfully compiled {} YARA rules", rule_count);
|
log::info!("Successfully compiled {} YARA rules", rule_count);
|
||||||
Ok(rule_count)
|
Ok(rule_count)
|
||||||
|
|||||||
Reference in New Issue
Block a user