From: Herton R. Krzesinski <herton(a)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 <herton(a)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