![Ben Hutchings](/assets/img/avatar_default.png)
Fixes:87b2d44026
("selftests: add memfd/sealing page-pinning tests") Fixes:2bf9e0ab08
("locking/static_keys: Provide a selftest") Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
17 lines
377 B
Bash
Executable file
17 lines
377 B
Bash
Executable file
#!/bin/sh
|
|
# Runs static keys kernel module tests
|
|
|
|
if /sbin/modprobe -q test_static_key_base; then
|
|
if /sbin/modprobe -q test_static_keys; then
|
|
echo "static_key: ok"
|
|
/sbin/modprobe -q -r test_static_keys
|
|
/sbin/modprobe -q -r test_static_key_base
|
|
else
|
|
echo "static_keys: [FAIL]"
|
|
/sbin/modprobe -q -r test_static_key_base
|
|
fi
|
|
else
|
|
echo "static_key: [FAIL]"
|
|
exit 1
|
|
fi
|