diff options
author | Luis R. Rodriguez <mcgrof@kernel.org> | 2017-07-12 14:33:33 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-07-12 16:26:00 -0700 |
commit | d383d48470819e86fe30eb72f0e9494e1ee0e2af (patch) | |
tree | 70be7478d13013b86d3d757577a5c60e89f95603 /firmware/sb16 | |
parent | a19ac3374995382a994653ff372b98ea7cbad548 (diff) | |
download | linux-stable-d383d48470819e86fe30eb72f0e9494e1ee0e2af.tar.gz linux-stable-d383d48470819e86fe30eb72f0e9494e1ee0e2af.tar.bz2 linux-stable-d383d48470819e86fe30eb72f0e9494e1ee0e2af.zip |
sysctl: fold sysctl_writes_strict checks into helper
The mode sysctl_writes_strict positional checks keep being copy and pasted
as we add new proc handlers. Just add a helper to avoid code duplication.
Link: http://lkml.kernel.org/r/20170519033554.18592-4-mcgrof@kernel.org
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
Suggested-by: Kees Cook <keescook@chromium.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'firmware/sb16')
0 files changed, 0 insertions, 0 deletions