<feed xmlns='http://www.w3.org/2005/Atom'>
<title>efi-boot-shim.git/shim.h, branch rolling</title>
<subtitle> (mirror of https://github.com/vyos/efi-boot-shim.git)
</subtitle>
<id>https://git.amelek.net/vyos/efi-boot-shim.git/atom?h=rolling</id>
<link rel='self' href='https://git.amelek.net/vyos/efi-boot-shim.git/atom?h=rolling'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/'/>
<updated>2025-02-24T20:24:24+00:00</updated>
<entry>
<title>Move memory attribute support to its own file.</title>
<updated>2025-02-24T20:24:24+00:00</updated>
<author>
<name>Peter Jones</name>
<email>pjones@redhat.com</email>
</author>
<published>2025-02-20T18:51:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=589c3f289e05454be23507767439cb9769a2264a'/>
<id>urn:sha1:589c3f289e05454be23507767439cb9769a2264a</id>
<content type='text'>
This moves the EFI Memory Attribute Protocol helper functions to their
own file, since they're not related to PE things.

Signed-off-by: Peter Jones &lt;pjones@redhat.com&gt;
</content>
</entry>
<entry>
<title>Move error logging decls out of shim.h</title>
<updated>2025-02-24T20:22:28+00:00</updated>
<author>
<name>Peter Jones</name>
<email>pjones@redhat.com</email>
</author>
<published>2025-02-19T16:03:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=5c1e6e45a0f54eaabea0f9405ed661b5028de30c'/>
<id>urn:sha1:5c1e6e45a0f54eaabea0f9405ed661b5028de30c</id>
<content type='text'>
This moves decls for errlog.c into errlog.h

Signed-off-by: Peter Jones &lt;pjones@redhat.com&gt;
</content>
</entry>
<entry>
<title>loader-proto: Add support for loading files from disk to LoadImage()</title>
<updated>2025-02-11T15:43:37+00:00</updated>
<author>
<name>Mate Kukri</name>
<email>mate.kukri@canonical.com</email>
</author>
<published>2024-04-18T09:58:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=2bff46034aeefe4b266b6d6dd7d6cd771c1bf4de'/>
<id>urn:sha1:2bff46034aeefe4b266b6d6dd7d6cd771c1bf4de</id>
<content type='text'>
Currently the EFI_SIMPLE_FILE_SYSTEM_PROTOCOL and EFI_LOAD_FILE2_PROTOCOL
are supported.

Signed-off-by: Mate Kukri &lt;mate.kukri@canonical.com&gt;
</content>
</entry>
<entry>
<title>Move some stuff around</title>
<updated>2025-02-11T15:43:37+00:00</updated>
<author>
<name>Peter Jones</name>
<email>pjones@redhat.com</email>
</author>
<published>2023-06-30T17:24:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=e7b3598311c4b002417ac6364093cfab218ced88'/>
<id>urn:sha1:e7b3598311c4b002417ac6364093cfab218ced88</id>
<content type='text'>
This moves some things around to help with loader protocol changes:

- Move replacements.c to loader-proto.c
- likewise with replacements.h
- move the SHIM_IMAGE_LOADER decl to loader-proto.h
- move the LoadImage / StartImage interface setup to an init function
- move shim_load_image() / shim_start_image() to loader-proto.c

Signed-off-by: Peter Jones &lt;pjones@redhat.com&gt;
</content>
</entry>
<entry>
<title>Implement shim image load protocol</title>
<updated>2025-02-11T15:43:37+00:00</updated>
<author>
<name>Ard Biesheuvel</name>
<email>ardb@kernel.org</email>
</author>
<published>2023-06-29T15:58:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=bb114a3b92a96875dc71e5e4925bedba5c02f958'/>
<id>urn:sha1:bb114a3b92a96875dc71e5e4925bedba5c02f958</id>
<content type='text'>
Define a new protocol for loading and starting images, encapsulating
shim's PE loading facilities and verification/authentication against the
same set of certificates that shim_lock::verify() authenticates against.

This removes the need for loaders like GRUB to implement their own PE
loader in order to be able to invoke loaded images as PE applications,
rather than implementing a bespoke OS dependent handover protocol (e.g.,
invoke Linux via its EFI stub)

Signed-off-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
</content>
</entry>
<entry>
<title>Create utils file</title>
<updated>2025-02-06T20:13:23+00:00</updated>
<author>
<name>Eric Snowberg</name>
<email>eric.snowberg@oracle.com</email>
</author>
<published>2023-08-29T17:33:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=38dfa37ec218bda0dd6bb5c4ce9e6ecb05fda851'/>
<id>urn:sha1:38dfa37ec218bda0dd6bb5c4ce9e6ecb05fda851</id>
<content type='text'>
Move some functions currently used within fallback that will later also
be used in shim.

Signed-off-by: Eric Snowberg &lt;eric.snowberg@oracle.com&gt;
</content>
</entry>
<entry>
<title>Move is_removable_media_path() to a shared location.</title>
<updated>2025-01-17T19:45:32+00:00</updated>
<author>
<name>Peter Jones</name>
<email>pjones@redhat.com</email>
</author>
<published>2025-01-17T19:13:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=1508ece179267943bad5851010eba8c00570c0ed'/>
<id>urn:sha1:1508ece179267943bad5851010eba8c00570c0ed</id>
<content type='text'>
We need to use is_removable_media_path(), and potentially other helpers,
from Mok as well as shim.

This moves it to a file just for Device Path utility functions to make
that simpler.

Signed-off-by: Peter Jones &lt;pjones@redhat.com&gt;
</content>
</entry>
<entry>
<title>BS Variables for bootmgr revocations</title>
<updated>2023-12-05T18:20:00+00:00</updated>
<author>
<name>Jan Setje-Eilers</name>
<email>jan.setjeeilers@oracle.com</email>
</author>
<published>2023-04-29T02:54:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=7dfb6871b8a54710d9e9d8d56146e7c083d2e6a8'/>
<id>urn:sha1:7dfb6871b8a54710d9e9d8d56146e7c083d2e6a8</id>
<content type='text'>
This adds support for applying SkuSiPolicy UEFI BS variables. These
varaibles are needed for non-dbx based Windows revocations and are
described here:

https://support.microsoft.com/en-us/topic/kb5027455-guidance-for-blocking-vulnerable-windows-boot-managers-522bb851-0a61-44ad-aa94-ad11119c5e91

Signed-off-by: Jan Setje-Eilers &lt;Jan.SetjeEilers@oracle.com&gt;
</content>
</entry>
<entry>
<title>Further mitigations against CVE-2023-40546 as a class</title>
<updated>2023-12-05T18:20:00+00:00</updated>
<author>
<name>Peter Jones</name>
<email>pjones@redhat.com</email>
</author>
<published>2023-08-02T18:36:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=dae82f6bd72cf600e5d48046ec674a441d0f49d7'/>
<id>urn:sha1:dae82f6bd72cf600e5d48046ec674a441d0f49d7</id>
<content type='text'>
In CVE-2023-40546, an incorrect invocation of LogError()
causes a read from the page at address 0, which on newer systems will
correctly cause a fault.  The immediate fix for this CVE is to fix the
invocation so that the error is logged correctly, but there is more that
can be done.

This patch adds additional checks to ensure that the format specifier on
any of these invocations can not be NULL, thereby mitigating this entire
class of error from creating a fault.  Additionally, most of these
checks are done using _Static_assert(), so they should normally be
triggered at compile time.

Signed-off-by: Peter Jones &lt;pjones@redhat.com&gt;
</content>
</entry>
<entry>
<title>Optionally allow to keep shim protocol installed</title>
<updated>2023-05-02T17:53:08+00:00</updated>
<author>
<name>Luca Boccassi</name>
<email>bluca@debian.org</email>
</author>
<published>2023-04-22T18:53:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=1f38cb30a5e1dcea97b8d48915515b866ec13c32'/>
<id>urn:sha1:1f38cb30a5e1dcea97b8d48915515b866ec13c32</id>
<content type='text'>
If the ShimRetainProtocol variable is set, avoid uninstalling our
protocol.
For example, this allows sd-stub in a UKI to use the shim protocol to
validate PE binaries, even if it is executed by a second stage, before
the kernel is loaded.
Ensure that the variable is volatile and for BootServices access.
Also delete it on startup, so that we can be sure it was really set by
a second stage.

Example use case in sd-boot/sd-stub:

https://github.com/systemd/systemd/pull/27358

Signed-off-by: Luca Boccassi &lt;bluca@debian.org&gt;
</content>
</entry>
</feed>
