selftest/lkdtm: Skip stack-entropy test if lkdtm is not available
authorMisono Tomohiro <misono.tomohiro@jp.fujitsu.com>
Thu, 5 Aug 2021 10:12:36 +0000 (19:12 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:57:07 +0000 (12:57 +0100)
commit57081f83849cf9780aaa96b35484b0f8b57aaf93
treecb6d82543d741be030e3a6396752d0a1335e5739
parent9197daee9eb626baae208f220908e70945560b52
selftest/lkdtm: Skip stack-entropy test if lkdtm is not available

commit 90091c367e74d5b58d9ebe979cc363f7468f58d3 upstream.

Exit with return code 4 if lkdtm is not available like other tests
in order to properly skip the test.

Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210805101236.1140381-1-misono.tomohiro@jp.fujitsu.com
Cc: Andrew Paniakin <apanyaki@amazon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/lkdtm/stack-entropy.sh