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

Paul Moore paul at paul-moore.com
Fri Nov 10 21:36:55 UTC 2023


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.

-- 
paul-moore.com



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