diff options
author | Orson Zhai <orson.zhai@linaro.org> | 2017-06-27 08:52:09 +0800 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2017-06-27 18:57:02 -0600 |
commit | d644437a1dc6226afb7b8a814657961d8812f763 (patch) | |
tree | ebc2b66ea461f99acb82da3103ac82a88d35991e /tools/testing/selftests/sysctl/run_stringtests | |
parent | kselftest.rst: do some adjustments after ReST conversion (diff) | |
download | linux-dev-d644437a1dc6226afb7b8a814657961d8812f763.tar.xz linux-dev-d644437a1dc6226afb7b8a814657961d8812f763.zip |
tools/testing/selftests/sysctl: Add pre-check to the value of writes_strict
Sysctl test will fail in some items if the value of /proc/sys/kernel
/sysctrl_writes_strict is 0 as the default value in kernel older than v4.5.
Make this test more robus and compatible with older kernel by checking and
update writes_strict value and restore it when test is done.
Signed-off-by: Orson Zhai <orson.zhai@linaro.org>
Reviewed-by: Sumit Semwal <sumit.semwal@linaro.org>
Tested-by: Sumit Semwal <sumit.semwal@linaro.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to '')
-rwxr-xr-x | tools/testing/selftests/sysctl/run_stringtests | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/sysctl/run_stringtests b/tools/testing/selftests/sysctl/run_stringtests index 90a9293d520c..857ec667fb02 100755 --- a/tools/testing/selftests/sysctl/run_stringtests +++ b/tools/testing/selftests/sysctl/run_stringtests @@ -74,4 +74,4 @@ else echo "ok" fi -exit $rc +exit_test |