boot: Replace firmware security hooks directly
authorJan Janssen <medhefgo@web.de>
Tue, 15 Nov 2022 17:53:02 +0000 (18:53 +0100)
committerJan Janssen <medhefgo@web.de>
Sat, 19 Nov 2022 15:39:04 +0000 (16:39 +0100)
commit967a868563996e928f1fade5bcafc82a7219742b
tree78cf2913a2bfa4e66b2d999d3405e4f6bf108104
parent5489c13bae119dc5f6e65be8d7f241aa7d54c023
boot: Replace firmware security hooks directly

For some firmware, replacing their own security arch instance with our
override using ReinstallProtocolInterface() is not enough as they will
not use it. This commit goes back to how this was done before by
directly modifying the security protocols.

Fixes: #25336
src/boot/efi/secure-boot.c