sysctl: move cad_pid into kernel/pid.c
authorJoel Granados <joel.granados@kernel.org>
Mon, 5 May 2025 19:47:47 +0000 (21:47 +0200)
committerJoel Granados <joel.granados@kernel.org>
Wed, 23 Jul 2025 09:52:48 +0000 (11:52 +0200)
commite054bcbe7e7af2baad3752f1a4916a7fffc0457e
tree276863096292fa93245ae805ccf50cdeae1361e4
parent942b296a6c35da6593eeeb126dce71d4e506f314
sysctl: move cad_pid into kernel/pid.c

Move cad_pid as well as supporting function proc_do_cad_pid into
kernel/pic.c. Replaced call to __do_proc_dointvec with proc_dointvec
inside proc_do_cad_pid which requires the copy of the ctl_table to
handle the temp value.

This is part of a greater effort to move ctl tables into their
respective subsystems which will reduce the merge conflicts in
kernel/sysctl.c.

Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Kees Cook <kees@kernel.org>
Signed-off-by: Joel Granados <joel.granados@kernel.org>
kernel/pid.c
kernel/sysctl.c