Re: [GIT PULL] selinux/selinux-pr-20250323
From: Thiébaud Weksteen <hidden>
Date: 2025-03-27 03:28:14
Also in:
lkml, selinux
From: Thiébaud Weksteen <hidden>
Date: 2025-03-27 03:28:14
Also in:
lkml, selinux
On Thu, Mar 27, 2025 at 12:21 PM Linus Torvalds [off-list ref] wrote:
[...] the firmware loading is done by random processes.
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. It is therefore possible to grant this permission to the corresponding security context (in our policy that would be the "kernel" domain). To be honest, I don't think this particular distinction applies to Android, but I can imagine IoT devices with smaller/stricter policies wishing to enforce this (e.g., device boot without a policy, loads its drivers and firmware, loads a policy that enforces no more firmware loading). Thanks [1] https://lore.kernel.org/all/20220502004952.3970800-1-tweek@google.com/ (local)