Re: [PATCH] LSM: Convert security_hook_heads into explicit array of struct list_head

From: Alan Cox
Date: Tue May 30 2017 - 11:27:08 EST


On Tue, 30 May 2017 23:29:10 +0900
Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx> wrote:

> James Morris wrote:
> > On Sun, 28 May 2017, Tetsuo Handa wrote:
> >
> > > can afford enabling". And we know that we cannot merge all security modules
> > > into mainline. Thus, allowing LKM-based LSM modules is inevitable.
> >
> > Nope, it's not inevitable. The LSM API only caters to in-tree users.
> >
> > I'm not sure why you persist against this.
>
> Then, we are willing to accept LSM modules with users less than 10, aren't we?

Why not if they are properly written and maintained. Historically we've
supported an entire architecture that had one machine ever built. We
supported a strange subclass of x86 machines for many years because James
Bottomley cared enough to do the work. We still support M68K, PA-RISC and
other stuff as well as plenty of hardware which probably has few users -
providing it doesn't cause maintenance problems.

Alan