All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Moore <paul@paul-moore.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Stephen Smalley <stephen.smalley.work@gmail.com>,
	SElinux list <selinux@vger.kernel.org>
Subject: Re: Looking at profile data once again - avc lookup
Date: Mon, 30 Jan 2023 12:14:17 -0500	[thread overview]
Message-ID: <CAHC9VhRWz2N6ezZckSwtZvM3J75prdq7ckaoQgAO+ECz527qCw@mail.gmail.com> (raw)
In-Reply-To: <CAHk-=whLndwMFSF_OAWdqxXYXUev_H9YqEkXQ1_PKoPO8u=G2g@mail.gmail.com>

On Sun, Jan 29, 2023 at 2:37 PM Linus Torvalds
<torvalds@linux-foundation.org> wrote:
> On Sat, Jan 28, 2023 at 2:33 PM Paul Moore <paul@paul-moore.com> wrote:
> >
> > I'll take a look, although just a heads-up that I don't generally
> > merge patches into selinux/next at this point in the -rc cycle unless
> > they are bug fixes, or some other critical patch; it's likely this
> > will need to wait until after the upcoming merge window closes.
>
> Yeah, that patch was not some kind of "please apply this urgent fix",
> more of a "I'm looking at path walking again, and the selinux code is
> more expensive than the *actual* path walk is" heads up.

Yep, just wanted to set expectations so you wouldn't be surprised to
not see this during the upcoming merge window.

> > > Comments? Is there some case I've missed?
> >
> > You're correct in that selinux_state parameters currently always point
> > back to the single global instance, however there was, and still is, a
> > point to that patch ... although I will admit it is a long time
> > coming.
>
> Honestly, considering that the selinux code is literally more
> expensive than THE REAL WORKLOAD it is checking, I really want people
> to take a second look.

WE WILL

> If some new feature makes that crazy-expensive thing *worse*, we have issues.
>
> If it's been that way for five years with no progress, and no clear
> indication that it's even some high-priority issue that lots of people
> are asking for, maybe that should be a big hint.

To be fair, people *are* asking SELinux namespacing, but there are
some very thorny problems that remain unsolved.  However, after the
merge window we should consider moving away from passing the
selinux_state as a parameter and just using it as a global resource.

-- 
paul-moore.com

  reply	other threads:[~2023-01-30 17:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-28 21:15 Looking at profile data once again - avc lookup Linus Torvalds
2023-01-28 22:33 ` Paul Moore
2023-01-29 19:36   ` Linus Torvalds
2023-01-30 17:14     ` Paul Moore [this message]
2023-01-30 17:46       ` Paul Moore
2023-01-30 18:35         ` Linus Torvalds
2023-01-30 19:54           ` Paul Moore

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHC9VhRWz2N6ezZckSwtZvM3J75prdq7ckaoQgAO+ECz527qCw@mail.gmail.com \
    --to=paul@paul-moore.com \
    --cc=selinux@vger.kernel.org \
    --cc=stephen.smalley.work@gmail.com \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.