[PATCH v3 04/34] lsm: introduce looping macros for the initialization code

Paul Moore paul at paul-moore.com
Wed Sep 3 20:07:22 UTC 2025


On Tue, Sep 2, 2025 at 12:37 PM John Johansen
<john.johansen at canonical.com> wrote:
>
> On 8/14/25 15:50, Paul Moore wrote:
> > There are three common for loop patterns in the LSM initialization code
> > to loop through the ordered LSM list and the registered "early" LSMs.
> > This patch implements these loop patterns as macros to help simplify the
> > code and reduce the change for errors.
>                        ^
>                        chance

Good catch, thanks.

> otherwise looks good, and you can add my
>
> Reviewed-by: John Johansen <john.johansen at canonical.com>

--
paul-moore.com



More information about the Linux-security-module-archive mailing list