Skip to content
Snippets Groups Projects
Commit 7a001e0f authored by Heinrich Schuchardt's avatar Heinrich Schuchardt :speech_balloon:
Browse files

sandbox: poweroff in efi_system_reset()


efi_system_reset() should exit if called with EFI_RESET_SHUTDOWN.

Signed-off-by: default avatarHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
parent cd9a26bf
No related branches found
No related tags found
No related merge requests found
......@@ -434,8 +434,10 @@ void __efi_runtime EFIAPI efi_reset_system(
efi_status_t reset_status,
unsigned long data_size, void *reset_data)
{
os_fd_restore();
os_relaunch(os_argv);
if (reset_type == EFI_RESET_SHUTDOWN)
sandbox_exit();
else
sandbox_reset();
}
void sandbox_reset(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment