Skip to content

Commit 2b367b6

Browse files
committed
Use blocked paths in filehash58 probe
1 parent 63d2a79 commit 2b367b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/OVAL/probes/independent/filehash58_probe.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ static int filehash58_cb(const char *prefix, const char *p, const char *f, const
152152
memcpy (pbuf + plen, f, sizeof (char) * flen);
153153
pbuf[plen+flen] = '\0';
154154

155+
if (probe_path_is_blocked(pbuf, ctx->blocked_paths)) {
156+
return 0;
157+
}
158+
155159
/*
156160
* Open the file
157161
*/

0 commit comments

Comments
 (0)