]> git.baikalelectronics.ru Git - kernel.git/commit
sysctl: enable strict writes
authorKees Cook <keescook@chromium.org>
Wed, 20 Jan 2016 23:00:45 +0000 (15:00 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 21 Jan 2016 01:09:18 +0000 (17:09 -0800)
commit3ad4eaf4747fe94ce78f33723ee9c0227b947377
tree6416fe63b3eec53d98eda7e84ee1da01f82377b3
parent72ef5822faab3321a591d3ec57c6bf397e7545a4
sysctl: enable strict writes

SYSCTL_WRITES_WARN was added in commit 56a817f3148f ("sysctl: allow for
strict write position handling"), and released in v3.16 in August of
2014.  Since then I can find only 1 instance of non-zero offset
writing[1], and it was fixed immediately in CRIU[2].  As such, it
appears safe to flip this to the strict state now.

[1] https://www.google.com/search?q="when%20file%20position%20was%20not%200"
[2] http://lists.openvz.org/pipermail/criu/2015-April/019819.html

Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/sysctl/kernel.txt
kernel/sysctl.c