[Libguestfs] [PATCH v7 0/7] Feature: Yara file scanning
Richard W.M. Jones
rjones at redhat.com
Mon Apr 24 08:54:10 UTC 2017
Not yet upstream, but I've proposed changing the way that
strings are handled in API calls:
https://www.redhat.com/archives/libguestfs/2017-April/msg00205.html
The attached patch makes the required changes to this patch series.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
-------------- next part --------------
diff --git a/generator/actions_yara.ml b/generator/actions_yara.ml
index 5afbd47e9..0f7980b0f 100644
--- a/generator/actions_yara.ml
+++ b/generator/actions_yara.ml
@@ -25,7 +25,7 @@ open Types
let non_daemon_functions = [
{ defaults with
name = "yara_scan"; added = (1, 37, 12);
- style = RStructList ("detections", "yara_detection"), [Pathname "path"], [];
+ style = RStructList ("detections", "yara_detection"), [String (Pathname, "path")], [];
optional = Some "libyara";
progress = true; cancellable = true;
shortdesc = "scan a file with the loaded yara rules";
@@ -53,7 +53,7 @@ Identifier of the Yara rule which matched against the given file.
let daemon_functions = [
{ defaults with
name = "yara_load"; added = (1, 37, 12);
- style = RErr, [FileIn "filename"], [];
+ style = RErr, [String (FileIn, "filename")], [];
progress = true; cancellable = true;
optional = Some "libyara";
shortdesc = "load yara rules within libguestfs";
@@ -83,7 +83,7 @@ Destroy previously loaded Yara rules in order to free libguestfs resources." };
{ defaults with
name = "internal_yara_scan"; added = (1, 37, 12);
- style = RErr, [Pathname "path"; FileOut "filename"], [];
+ style = RErr, [String (Pathname, "path"); String (FileOut, "filename")], [];
visibility = VInternal;
optional = Some "libyara";
shortdesc = "scan a file with the loaded yara rules";
More information about the Libguestfs
mailing list