[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202501231520.B8A527C4@keescook>
Date: Thu, 23 Jan 2025 15:20:46 -0800
From: Kees Cook <kees@...nel.org>
To: "Ricardo B. Marliere" <ricardo@...liere.net>
Cc: Paul Moore <paul@...l-moore.com>, James Morris <jmorris@...ei.org>,
"Serge E. Hallyn" <serge@...lyn.com>,
linux-security-module@...r.kernel.org, linux-kernel@...r.kernel.org,
"Ricardo B. Marliere" <rbm@...e.com>,
Thomas Weißschuh <linux@...ssschuh.net>
Subject: Re: [PATCH 1/2] yama: Make sysctl table const
On Thu, Jan 23, 2025 at 04:33:34PM -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 yama_sysctl_table to be declared at build time,
> instead of having to be dynamically allocated at boot time.
>
> Cc: Thomas Weißschuh <linux@...ssschuh.net>
> Suggested-by: Thomas Weißschuh <linux@...ssschuh.net>
> Signed-off-by: Ricardo B. Marliere <rbm@...e.com>
Reviewed-by: Kees Cook <kees@...nel.org>
--
Kees Cook
Powered by blists - more mailing lists