Re: [GIT PULL] LSM patches for v6.1

From: Paul Moore
Date: Wed Oct 05 2022 - 18:40:02 EST


On Wed, Oct 5, 2022 at 5:28 PM Eric W. Biederman <ebiederm@xxxxxxxxxxxx> wrote:
> Paul Moore <paul@xxxxxxxxxxxxxx> writes:
> > On Wed, Oct 5, 2022 at 11:33 AM Eric W. Biederman <ebiederm@xxxxxxxxxxxx> wrote:
> >> Paul Moore <paul@xxxxxxxxxxxxxx> writes:
> >> > On Wed, Oct 5, 2022 at 8:39 AM Eric W. Biederman <ebiederm@xxxxxxxxxxxx> wrote:
> >> >> Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> writes:
> >
> > ...
> >
> >> >> Effectively he said that where two or more out of tree LSM policies want
> >> >> something it makes no sense to discussion the actual reasons people want
> >> >> to use the hook.
> >> >
> >> > Runtime kernel configuration is inherently "out of tree", this
> >> > includes not only loadable LSM security policies (e.g. a SELinux
> >> > policy), the system's firewall configuration, things like sysctl.conf,
> >> > and countless others. Please understand that "out of tree" in this
> >> > context is not the same as when it is used in the context of kernel
> >> > code; the former is actually a positive thing ("look we can configure
> >> > the kernel behavior the way we want!") while the latter is a
> >> > maintenance and support nightmare.
> >>
> >> Paul are you saying my experience with /proc/net pointing incorrectly at
> >> /proc/self/net instead of /proc/thread-self/net is invalid?
> >
> > My comment was that runtime kernel configuration is always going to be
> > out of tree due to its very nature, and conflating runtime
> > configuration with kernel code is a mistake.

...

> Given that the logic and it's bugs are going to be out of tree I do not
> agree that we should only consider what goes into the kernel when
> looking into that kind of code. Instead we should treat it will all of
> the due diligence that we attempt to use when creating a system call.
> That very much has not happened here.

Eric, I disagree with most of what you said, to the point where we
could probably go round and round in circles for days on this and not
be any closer to an agreeable conclusion. I don't know about you, but
that is not my idea of time well spent, especially since Linus has
already voiced his opinion on the matter. I will end my comments here
with the hope that someday soon you can at least find the ability to
respect the consensus decision, even if you can't bring yourself to
agree with it.

--
paul-moore.com