The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Casey Schaufler <casey@schaufler-ca.com>
To: Jeffrey Vander Stoep <jeffv@google.com>,
	Linus Torvalds <torvalds@linux-foundation.org>
Cc: "Thiébaud Weksteen" <tweek@google.com>,
	"Paul Moore" <paul@paul-moore.com>,
	"Cameron K. Williams" <ckwilliams.work@gmail.com>,
	"Kipp N. Davis" <kippndavis.work@gmx.com>,
	"Stephen Smalley" <stephen.smalley.work@gmail.com>,
	selinux@vger.kernel.org, linux-security-module@vger.kernel.org,
	linux-kernel@vger.kernel.org, "Nick Kralevich" <nnk@google.com>,
	"Casey Schaufler" <casey@schaufler-ca.com>
Subject: Re: [GIT PULL] selinux/selinux-pr-20250323
Date: Thu, 27 Mar 2025 09:41:19 -0700	[thread overview]
Message-ID: <cfece0a5-fd0a-41d7-939d-5a2f524c9ced@schaufler-ca.com> (raw)
In-Reply-To: <CABXk95AqgpqGtjzK2o=mxWJg5RUZG80dAEaKF9JdUT6n5eFENQ@mail.gmail.com>

On 3/27/2025 1:59 AM, Jeffrey Vander Stoep wrote:
> On Thu, Mar 27, 2025 at 5:10 AM Linus Torvalds
> <torvalds@linux-foundation.org> wrote:
>> On Wed, 26 Mar 2025 at 20:28, Thiébaud Weksteen <tweek@google.com> wrote:
>>> That is not quite right. If you look at commit 581dd6983034 [1], when
>>> a firmware is about to be loaded, the kernel credentials are used.
>> Ahh, that's good, at least there's no "random state" to check.
>>
>> But it does still mean that the security check is pointless - there
>> aren't any other credentials that would validly be used for firmware
>> loading, so what was the point of checking them again?
> The value here isn't so much about checking the source context
> "kernel", but rather about checking the target context and enforcing
> that firmware can only come from trusted filesystems. So even a
> compromised privileged process that sets firmware_class.path cannot
> cause the kernel to load firmware from an arbitrary source.
>
> These restrictions reduce our reliance on (1) individual component
> manufacturers (e.g. NFC chips) implementing signature verification
> correctly in their firmware loading procedure, or (2) the fallout for
> the Android ecosystem if a component manufacturer's private key leaks
> because even firmware signed with the leaked key will not be trusted
> if it doesn't come from the trusted filesystem signed by the Android
> device manufacturer. Leaked keys is a very real problem. Restrictions
> like those added here can significantly reduce the severity of such
> incidences.
>
> With this, we can write policies for Android devices that enforce that
> firmware only comes from trusted filesystems. For example:
>
> allow kernel vendor_file:system firmware_load;

Am I missing something, or isn't that what loadpin is for?


  parent reply	other threads:[~2025-03-27 16:41 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-23 19:39 [GIT PULL] selinux/selinux-pr-20250323 Paul Moore
2025-03-25 23:02 ` Linus Torvalds
2025-03-26 18:36   ` Paul Moore
2025-03-26 19:40     ` Linus Torvalds
2025-03-26 20:48       ` Paul Moore
2025-03-26 21:06         ` Linus Torvalds
2025-03-26 23:02           ` Paul Moore
2025-03-27  0:43             ` Linus Torvalds
2025-03-27  1:06               ` Thiébaud Weksteen
2025-03-27  1:20                 ` Linus Torvalds
2025-03-27  3:27                   ` Thiébaud Weksteen
2025-03-27  4:09                     ` Linus Torvalds
2025-03-27  8:59                       ` Jeffrey Vander Stoep
2025-03-27 15:49                         ` Linus Torvalds
2025-03-27 16:55                           ` Stephen Smalley
2025-03-27 18:15                             ` Linus Torvalds
2025-03-27 19:03                               ` Linus Torvalds
2025-03-27 19:16                                 ` Stephen Smalley
2025-03-27 19:40                                   ` Linus Torvalds
2025-03-28 13:23                                     ` Stephen Smalley
2025-03-28 15:06                                       ` Paul Moore
2025-04-02 20:38                                         ` Paul Moore
2025-03-28 16:36                                       ` Linus Torvalds
2025-03-28 17:24                                         ` Casey Schaufler
2025-03-27 16:41                         ` Casey Schaufler [this message]
2025-03-25 23:17 ` pr-tracker-bot

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=cfece0a5-fd0a-41d7-939d-5a2f524c9ced@schaufler-ca.com \
    --to=casey@schaufler-ca.com \
    --cc=ckwilliams.work@gmail.com \
    --cc=jeffv@google.com \
    --cc=kippndavis.work@gmx.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-security-module@vger.kernel.org \
    --cc=nnk@google.com \
    --cc=paul@paul-moore.com \
    --cc=selinux@vger.kernel.org \
    --cc=stephen.smalley.work@gmail.com \
    --cc=torvalds@linux-foundation.org \
    --cc=tweek@google.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox