kernel/selinux-testsuite: fix module_load check

The "conmakehash" program is not shipped on recent Fedora kernels (and
who knows where else). Switch to "unifdef", which seems to be everywhere
(and always an ELF executable).

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
This commit is contained in:
Ondrej Mosnacek 2020-03-03 12:31:49 +01:00
commit 26fd2feb94

View file

@ -354,7 +354,7 @@ rlJournalStart
# CKI mainline kernels don't ship with module build infrastructure
# just yet. Also, RHEL-8 CKI kernel-devel programs are
# cross-compiled badly for alt arches, so try executing one of them.
if ! "/lib/modules/$(uname -r)/build/scripts/conmakehash" /dev/null &>/dev/null; then
if ! "/lib/modules/$(uname -r)/build/scripts/unifdef" /dev/null &>/dev/null; then
exclude_tests+=" module_load"
fi