Skip to content

Commit aa9ffd0

Browse files
committed
Use blocked paths in filehash probe
1 parent 2b367b6 commit aa9ffd0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/OVAL/probes/independent/filehash_probe.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ static int filehash_cb (const char *prefix, const char *p, const char *f, probe_
105105
pbuf[plen+flen] = '\0';
106106
include_filepath = oval_schema_version_cmp(over, OVAL_SCHEMA_VERSION(5.6)) >= 0;
107107

108+
if (probe_path_is_blocked(pbuf, ctx->blocked_paths)) {
109+
return 0;
110+
}
111+
108112
/*
109113
* Open the file
110114
*/

0 commit comments

Comments
 (0)