lkml.org 
[lkml]   [2019]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] sysctl: share commonly used constants
Date
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

\
 
 \ /
  Last update: 2019-04-09 00:10    [W:0.070 / U:2.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site