Thread (11 messages) 11 messages, 4 authors, 2025-02-14

Re: [PATCH 2/2] LoadPin: Make sysctl table const

From: Kees Cook <kees@kernel.org>
Date: 2025-01-23 23:20:53
Also in: lkml

On Thu, Jan 23, 2025 at 04:33:35PM -0300, Ricardo B. Marliere wrote:
Since commit 7abc9b53bd51 ("sysctl: allow registration of const struct
ctl_table"), the sysctl registration API allows for struct ctl_table to be
in read-only memory. Move loadpin_sysctl_table to be declared at build
time, instead of having to be dynamically allocated at boot time.

Cc: Thomas Weißschuh <linux@weissschuh.net>
Suggested-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Ricardo B. Marliere <redacted>
Reviewed-by: Kees Cook <kees@kernel.org>

-- 
Kees Cook
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help