Skip to content

fix: fix false positives with filename patterns #2521

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 11, 2023

Conversation

ffontaine
Copy link
Contributor

@ffontaine ffontaine commented Jan 11, 2023

Use match instead of search to only detect a match at the beginning of the filename for FILENAME_PATTERNS otherwise false positives will be raised. For example:

  • named (i.e. bind) for systemd-hostnamed
  • eroute (i.e. openswan) for traceroute6
  • scp (i.e. openssh) for libxt_dscp.so
  • libc (i.e. glibc) for libuClibc.so

Signed-off-by: Fabrice Fontaine [email protected]

Use match instead of search to only detect a match at the beginning of
the filename for FILENAME_PATTERNS otherwise false positives will be
raised. For example:
 - named (i.e. bind) for systemd-hostnamed
 - eroute (i.e. openswan) for traceroute6
 - scp (i.e. openssh) for libxt_dscp.so
 - libc (i.e. glibc) for libuClibc.so

Signed-off-by: Fabrice Fontaine <[email protected]>
@ffontaine ffontaine force-pushed the fix-filename-patterns branch from 40b6b37 to df91643 Compare January 11, 2023 16:23
Copy link
Contributor

@terriko terriko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

@terriko terriko merged commit f627fab into intel:main Jan 11, 2023
@ffontaine ffontaine deleted the fix-filename-patterns branch January 12, 2023 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants