summaryrefslogtreecommitdiff
path: root/lib/variables.c
diff options
context:
space:
mode:
authorStuart Hayes <stuart.w.hayes@gmail.com>2019-02-08 15:48:20 -0500
committerPeter Jones <pjones@redhat.com>2020-07-23 20:52:12 -0400
commitb5e10f70c7a495dc1788e3604803ee633f1e5f76 (patch)
treee390116a4fa94ef0359fb994a5ec92bd57ee10ce /lib/variables.c
parent1b382ef850de5a6c59b192c146a0e8d898d2d961 (diff)
downloadefi-boot-shim-b5e10f70c7a495dc1788e3604803ee633f1e5f76.tar.gz
efi-boot-shim-b5e10f70c7a495dc1788e3604803ee633f1e5f76.zip
Hook exit when shim_lock protocol installed
A recent commit moved where the shim_lock protocol is loaded and unloaded, but did not move where exit was hooked and unhooked. Exit needs to be hooked when the protocol is installed, so that the protocol will be uninstalled on exit. Otherwise, the system can crash if, for example, shim loads grub, the user exits grub, shim is run again, which installs a second instance of the protocol, and then grub tries to use the shim_lock protocol that was installed by the first instance of shim. Signed-off-by: Stuart Hayes <stuart.w.hayes@gmail.com> Upstream-commit-id: 06c92591e94
Diffstat (limited to 'lib/variables.c')
0 files changed, 0 insertions, 0 deletions