[PATCH] lsm: mark the lsm_id variables are marked as static

Paul Moore paul at paul-moore.com
Mon Nov 13 04:09:47 UTC 2023


On Fri, Nov 10, 2023 at 4:36 PM Paul Moore <paul at paul-moore.com> wrote:
> On Fri, Nov 10, 2023 at 3:23 PM Casey Schaufler <casey at schaufler-ca.com> wrote:
> >
> > On 11/10/2023 9:34 AM, Paul Moore wrote:
> > > As the kernel test robot helpfully reminded us, all of the lsm_id
> > > instances defined inside the various LSMs should be marked as static.
> > > The one exception is Landlock which uses its lsm_id variable across
> > > multiple source files with an extern declaration in a header file.
> > >
> > > Reported-by: kernel test robot <lkp at intel.com>
> > > Suggested-by: Casey Schaufler <casey at schaufler-ca.com>
> > > Signed-off-by: Paul Moore <paul at paul-moore.com>
> >
> > Reviewed-by: Casey Schaufler <casey at schaufler-ca.com>
>
> Thanks Casey, I've gone ahead and merge this into lsm/dev-staging.

Merged into lsm/dev.

-- 
paul-moore.com



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