redhat-best-practices-for-k8s / test-network-function

test-network-function is a collection of test suites aimed at testing Network Function (and in particular CNF) best practices.
GNU General Public License v2.0
14 stars 28 forks source link

ModuleInTree function modified to use /sys/module/<mod>/taint #638

Closed greyerof closed 2 years ago

greyerof commented 2 years ago

The use of modinfo won't work in cases where modules have been loaded from inside pods (like in SRO), since those pods have a different filesystem namespace for /lib/modules.

The ModuleInTree function has been updated to parse the content of the file /sys/module//taint, which returns a string with a letter per taint. The taint <-> letter correspondence list can be found here:

Some log traces improved.

sebrandon1 commented 2 years ago

I will also update my PR here to use this new path to check for modules.