Skip to content

sysctl: move umh and keys sysctls

Luis Chamberlain keyrings linux-fsdevel linux-patches linux-security-module lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sysctl: move umh sysctl registration to its own fileinclude/linux/umh.h kernel/sysctl.c kernel/umh.c+10 -41 reply
2/2sysctl: move security keys sysctl registration to its own fileinclude/linux/key.h kernel/sysctl.c security/keys/sysctl.c+7 -74 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchPaul MooreJarkko SakkinenDavid Howells
1/2A-b
2/2R-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/2] sysctl: move umh and keys sysctls

If you look at kernel/sysctl.c there are two sysctl arrays which are declared in header files but registered with no good reason now on kernel/sysctl.c instead of the place they belong. So just do the registration where it belongs.

The penalty of this is just 66 bytes for moving both registrations to its own file, but soon we'll be removing all sysctl empty entries at each array, and we've already done tons of cleanup on fs/proc/proc_sysctl.c which saved us hundreds of bytes so we have few karma points.

With this, we no now only have two sysctl arrays left to start clearing up the kernel one and the vm one.

Luis Chamberlain (2):
sysctl: move umh sysctl registration to its own file
sysctl: move security keys sysctl registration to its own file

 include/linux/key.h    |  3 ---
 include/linux/umh.h    |  2 --
 kernel/sysctl.c        |  5 -----
 kernel/umh.c           | 11 ++++++++++-
 security/keys/sysctl.c |  7 +++++++
 5 files changed, 17 insertions(+), 11 deletions(-)
Signature · 1 line
2.39.2