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,8 +179,7 @@ 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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user