Re: [PATCH 4/4] sysctl: Close test ctl_headers with a for loop

From: Kees Cook
Date: Wed Apr 09 2025 - 13:29:56 EST


On Fri, Mar 21, 2025 at 01:47:27PM +0100, Joel Granados wrote:
> As more tests are added, the exit function gets longer than it should
> be. Condense the un-register calls into a for loop to make it easier to
> add/remove tests.
>
> Signed-off-by: Joel Granados <joel.granados@xxxxxxxxxx>

Much cleaner too. :)

Reviewed-by: Kees Cook <kees@xxxxxxxxxx>

--
Kees Cook