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: NOrson Zhai <orson.zhai@linaro.org> Reviewed-by: NSumit Semwal <sumit.semwal@linaro.org> Tested-by: NSumit Semwal <sumit.semwal@linaro.org> Reviewed-by: NKees Cook <keescook@chromium.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
Showing
想要评论请 注册 或 登录