Revision 5f56a74cc0a6d9b9f8ba89cea29cd7c4774cb2b1 authored by Ard Biesheuvel on 20 September 2022, 15:08:23 UTC, committed by Ard Biesheuvel on 22 September 2022, 08:15:44 UTC
We currently check the MokSBState variable to decide whether we should treat UEFI secure boot as being disabled, even if the firmware thinks otherwise. This is used by shim to indicate that it is not checking signatures on boot images. In the kernel, we use this to relax lockdown policies. However, in cases where shim is not even being used, we don't want this variable to interfere with lockdown, given that the variable may be non-volatile and therefore persist across a reboot. This means setting it once will persistently disable lockdown checks on a given system. So switch to the mirrored version of this variable, called MokSBStateRT, which is supposed to be volatile, and this is something we can check. Cc: <stable@vger.kernel.org> # v4.19+ Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Peter Jones <pjones@redhat.com>
1 parent 63bf28c
File | Mode | Size |
---|---|---|
Makefile | -rw-r--r-- | 381 bytes |
clnt4xdr.c | -rw-r--r-- | 12.9 KB |
clntlock.c | -rw-r--r-- | 7.5 KB |
clntproc.c | -rw-r--r-- | 21.7 KB |
clntxdr.c | -rw-r--r-- | 13.2 KB |
host.c | -rw-r--r-- | 17.5 KB |
mon.c | -rw-r--r-- | 14.4 KB |
netns.h | -rw-r--r-- | 395 bytes |
procfs.c | -rw-r--r-- | 1.9 KB |
procfs.h | -rw-r--r-- | 474 bytes |
svc.c | -rw-r--r-- | 18.3 KB |
svc4proc.c | -rw-r--r-- | 19.1 KB |
svclock.c | -rw-r--r-- | 27.0 KB |
svcproc.c | -rw-r--r-- | 19.5 KB |
svcshare.c | -rw-r--r-- | 2.4 KB |
svcsubs.c | -rw-r--r-- | 11.4 KB |
svcxdr.h | -rw-r--r-- | 2.8 KB |
xdr.c | -rw-r--r-- | 7.6 KB |
xdr4.c | -rw-r--r-- | 7.3 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...