diff options
author | Luis R. Rodriguez | 2017-07-12 23:33:40 +0200 |
---|---|---|
committer | Linus Torvalds | 2017-07-13 01:26:00 +0200 |
commit | 61d9b56a89208d8cccd0b4cfec7e6959717e16e3 (patch) | |
tree | 50a968ed0905e9acbf1655d4a342560b644f9115 /lib/once.c | |
parent | sysctl: simplify unsigned int support (diff) | |
download | kernel-qcow2-linux-61d9b56a89208d8cccd0b4cfec7e6959717e16e3.tar.gz kernel-qcow2-linux-61d9b56a89208d8cccd0b4cfec7e6959717e16e3.tar.xz kernel-qcow2-linux-61d9b56a89208d8cccd0b4cfec7e6959717e16e3.zip |
sysctl: add unsigned int range support
To keep parity with regular int interfaces provide the an unsigned int
proc_douintvec_minmax() which allows you to specify a range of allowed
valid numbers.
Adding proc_douintvec_minmax_sysadmin() is easy but we can wait for an
actual user for that.
Link: http://lkml.kernel.org/r/20170519033554.18592-6-mcgrof@kernel.org
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
Acked-by: Kees Cook <keescook@chromium.org>
Cc: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Kees Cook <keescook@chromium.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Ingo Molnar <mingo@redhat.com>
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 'lib/once.c')
0 files changed, 0 insertions, 0 deletions