[PATCH 0/2] sysctl: share commonly used constants

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux