sysctl: return EINVAL on out-of-bound writes

In strict mode when invalid writes are detected, return an error.

Suggested-by: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
1 file changed