summaryrefslogtreecommitdiff
path: root/lib/console.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2014-11-25 14:41:55 -0500
committerPeter Jones <pjones@redhat.com>2015-04-13 19:55:25 -0400
commit5195d7d31bdec4e11401c4935e0fcf0b2c3f9e6f (patch)
tree312ec7f13a59c244f9ff2b91571b3065e490afab /lib/console.c
parentd01421eb5ae67daa9a2d341099b3e58fdb2f9f9e (diff)
downloadefi-boot-shim-5195d7d31bdec4e11401c4935e0fcf0b2c3f9e6f.tar.gz
efi-boot-shim-5195d7d31bdec4e11401c4935e0fcf0b2c3f9e6f.zip
Don't install our protocols if we're not in secure mode.
System services haven't been hooked if we're not in secure mode, so do_exit() will never be called. In this case shim never gets control once grub exits, which means if booting fails and the firmware tries another boot option, it'll attempt to talk to the shim protocol we installed. This is wrong, because it is allowed to have been cleared from ram at this time, since the task it's under has exited. So just don't install the protocols when we're not enforcing. This version also has a message and a 2-second stall after calling start_image(), so that we can tell if we are on the expected return path of our execution flow.
Diffstat (limited to 'lib/console.c')
0 files changed, 0 insertions, 0 deletions