linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] sysctl: move umh and keys sysctls
@ 2023-05-30 23:29 Luis Chamberlain
  2023-05-30 23:29 ` [PATCH 1/2] sysctl: move umh sysctl registration to its own file Luis Chamberlain
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Luis Chamberlain @ 2023-05-30 23:29 UTC (permalink / raw)
  To: keescook, yzaikin, dhowells, jarkko, paul, jmorris, serge,
	j.granados, brauner
  Cc: ebiederm, patches, linux-fsdevel, keyrings,
	linux-security-module, linux-kernel, Luis Chamberlain

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(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-06-07  8:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-30 23:29 [PATCH 0/2] sysctl: move umh and keys sysctls Luis Chamberlain
2023-05-30 23:29 ` [PATCH 1/2] sysctl: move umh sysctl registration to its own file Luis Chamberlain
2023-06-06 20:37   ` Jarkko Sakkinen
2023-05-30 23:29 ` [PATCH 2/2] sysctl: move security keys " Luis Chamberlain
2023-05-31 21:20   ` Paul Moore
2023-06-06 18:45     ` Luis Chamberlain
2023-06-06 20:39   ` Jarkko Sakkinen
2023-06-07  8:36 ` David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).