Skip to contentSkip to conversation

A formal request for process clarifications.

DISCUSSION Dr. Greg 2 participants 3 messages Dec 15, 2025 Security (LSM)

lore
Share & tools
lore

Dr. Greg

author
#0 lore raw

Good morning, I hope the week has started well for everyone.

When Paul Moore took over as the security/LSM sub-system maintainer, three years ago, he indicated a desire to be very prescriptive with respect to the practices that should be followed for the sub-system, particularly for the introduction of new LSM's.

The following URL documents the requirements for the introduction of a new LSM:

https://github.com/LinuxSecurityModule/kernel/blob/main/README.md#new-lsms

We believe that LWN covered the discussion around this document as well.

The following discussion on whether or not the Linux kernel provides proper support for modern Event Detection and Response Systems (EDR or EDRS) suggests the need to clarify these recommendations:

https://lore.kernel.org/linux-security-module/CABZOZnS4im-wNK4jtGKvp3YT9hPobA503rgiptutOF8rZEwt_w@mail.gmail.com

In that thread Timur Chernykh noted a possible desire to port the Apple security API to the kernel, which would presumably be a large body of virgin code.

Three years ago our team had submitted for review our TSEM LSM that provides a framework for generic security modeling, particularly to support machine learning and direct functional modeling of security behavior.

We haven't been able to receive any substantive review of TSEM over that period of time.

Casey Schaufler has been vocal in his criticism of how we introduced what is a virgin LSM implementation. Most particularly with the fact that we chose to include, as a single patch, a header file that contains the structure and enumeration definitions that are referenced by all of the compilation units that make up TSEM.

He indicates that an LSM submission, should 'tell a story' by bringing in the structure definitions with the code that uses those structures.

We can offer multiple examples of the challenges we see with doing this if that would be helpful but will not do so at this time.

We had requested guidance from Paul on how a new submission should be properly structured, since he is the ultimate judge and jury on a submission, but he declined to provide guidance.

Given the current security climate, particularly with what is widely cited as the potential impact of machine learning and AI on security architectures and practices, there will undoubtedly be new LSM's coming forward. It would seem in the best interests of everyone involved, reviewers and submitters, that specific guidance should be codified in the 'new-lsms' document of how a virgin body of code should be introduced.

Optimally this should include links to previous submissions that the security maintainers believe codify the desired method of story telling.

Given the importance of security in today's environment we are prepared to pursue this through the TAB if necessary.

We will look forward to comments from the community on this issue.

Have a good week.

As always,
Dr. Greg

The Quixote Project - Flailing at the Travails of Cybersecurity
https://github.com/Quixote-Project

#1 lore raw
Quoted 3 lines · Dr. Greg

Three years ago our team had submitted for review our TSEM LSM that provides a framework for generic security modeling,

If you can't convince the LSM people to take your code, you sure can't convince me.

I already think we have too many of those pointless things. There's a fine line between diversity and "too much confusion because everybody thinks they know best". And the linux security modules passed that line years ago.

So my suggestion is to standardize on normal existing security models instead of thinking that you can do better by making yet another one. Or at least work with the existing people instead of trying to bypass them and ignoring what they tell you.

Yes, I know that security people always think they know best, and they all disagree with each other, which is why we already have tons of security modules. Ask ten people what model is the right one, and you get fifteen different answers.

I'm not in the least interested in becoming some kind of arbiter or voice of sanity in this.

Linus

author
#2 lore raw

On Mon, Dec 15, 2025 at 07:38:58PM +1200, Linus Torvalds wrote:

Good morning Linus, thanks for taking the time to respond.

Quoted 18 lines · Dr. Greg
Quoted 3 lines

Three years ago our team had submitted for review our TSEM LSM that provides a framework for generic security modeling,

If you can't convince the LSM people to take your code, you sure can't convince me.

I already think we have too many of those pointless things. There's a fine line between diversity and "too much confusion because everybody thinks they know best". And the linux security modules passed that line years ago.

So my suggestion is to standardize on normal existing security models instead of thinking that you can do better by making yet another one. Or at least work with the existing people instead of trying to bypass them and ignoring what they tell you.

Quoted 7 lines

Yes, I know that security people always think they know best, and they all disagree with each other, which is why we already have tons of security modules. Ask ten people what model is the right one, and you get fifteen different answers.

I'm not in the least interested in becoming some kind of arbiter or voice of sanity in this.

First, to be very clear, we are not asking for any kind of intervention or arbitration on your part.

Second and most importantly. You've been belly-aching about this problem for as long as I can remember and you I go back to 1992 together with Linux.

You, and only you, can fix the problem if you want it fixed. Issue an immediate statement that you will no longer accept any code that implements an 'LSM'.

That will drive security development out of the kernel, which is where it is going to go eventually anyway OR it will drive the security community to try and fix what it considers to be the challenges with eBPF when it comes to building security solutions.

Somewhat paradoxically in all of this, TSEM isn't even an LSM that implements security policy. It is generic infrastructure that was built to address the very problem you are bitching about.

If Linux is really about technology, as you have continually advocated, then there has to be an open playing field for contributors. Absent that, Linux will balkanize, the same way the commercial Unix implementations did, around corporate driven interests and motivations.

We will pursue the open playing field issue through the TAB if necessary.

Quoted 1 line

Linus

Once again, with all due respect, fix the problem if it annoys you, you would be doing a lot of people a favor.

Best wishes for a pleasant holiday season to you and your family.

As always,
Dr. Greg

The Quixote Project - Flailing at the Travails of Cybersecurity
https://github.com/Quixote-Project