Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d644437a authored by Orson Zhai's avatar Orson Zhai Committed by Shuah Khan
Browse files

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: default avatarOrson Zhai <orson.zhai@linaro.org>
Reviewed-by: default avatarSumit Semwal <sumit.semwal@linaro.org>
Tested-by: default avatarSumit Semwal <sumit.semwal@linaro.org>
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
parent fde662d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment