From: Herton R. Krzesinski <her...@redhat.com>

redhat: ignore ksamples and kselftests on the badfuncs rpminspect test

Bugzilla: INTERNAL
Upstream Status: RHEL-only

The badfuncs test could report some entries for the ksamples/kselftests,
eg. if we list on badfuncs config that we don't want to see inet_addr
being used in userspace we will get:

(...)/usr/libexec/kselftests/net/timestamping may use forbidden functions on ...
...
Forbidden function symbols found:
        inet_addr
...

On Fedora for example, current rpminspect-data-fedora so far not allows
inet_addr which makes the test output entries like above.

But since those ksamples/kselftests are just used for testing/examples in the
kernel and are not supported user space binaries, just ignore them from the
test, we don't care if they use functions marked as 'deprecated'.

Signed-off-by: Herton R. Krzesinski <her...@redhat.com>

diff --git a/redhat/rpminspect.yaml b/redhat/rpminspect.yaml
index blahblah..blahblah 100644
--- a/redhat/rpminspect.yaml
+++ b/redhat/rpminspect.yaml
@@ -4,6 +4,11 @@
 inspections:
     upstream: off
 
+badfuncs:
+    ignore:
+        - /usr/libexec/ksamples/*
+        - /usr/libexec/kselftests/*
+
 emptyrpm:
     expected_empty:
         - kernel

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1526
_______________________________________________
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to