[PATCH 0/2] sysctl: share commonly used constants
From: Matteo Croce
Date: Mon Apr 08 2019 - 18:09:31 EST
In the sysctl code there are a lot of duplicate constants used to validate
the user input, which could be put in a shared place. Some of them are not
even constant, fix this with the following patches.
The first one declares the shared constants, the second one makes use of
them for the kernel/ sysctls.
If merged, I will send separate patches for the other susystems.
Matteo Croce (2):
proc/sysctl: add shared variables for range check
kernel: use sysctl shared variables for range check
fs/proc/proc_sysctl.c | 5 ++
include/linux/sysctl.h | 4 +
kernel/pid_namespace.c | 3 +-
kernel/sysctl.c | 193 ++++++++++++++++++++---------------------
kernel/ucount.c | 6 +-
5 files changed, 107 insertions(+), 104 deletions(-)
--
2.21.0