diff options
| author | Javier Martinez Canillas <javierm@redhat.com> | 2018-09-07 15:10:51 +0200 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2020-07-23 20:52:12 -0400 |
| commit | 818a0dbd247f7c83d844febfa0a037b396d22701 (patch) | |
| tree | fa45a2f36d0680f87707fe10310b10c5fe6e6073 /Cryptlib/Cryptlib.diff | |
| parent | 79be2af5260b1f2e2a4680e74e14da0fdb42b570 (diff) | |
| download | efi-boot-shim-818a0dbd247f7c83d844febfa0a037b396d22701.tar.gz efi-boot-shim-818a0dbd247f7c83d844febfa0a037b396d22701.zip | |
shim: Prevent shim to set itself as a second stage loader
When shim is invoked from a relative path (e.g: from the UEFI shell), the
Loaded Image handle LoadOptions can be set to the binary relative path.
But the is_our_path() function only checks if LoadOptions is set to the
absolute path of shim to ignore it. So if a relative path is there, shim
would set itself as the secondary loader and invoke itself in a loop.
To prevent that, use the path in LoadOptions to calculate the absolute
path and compare it with the one in the Loader Image handle FilePath.
Resolves: bz#1622485
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Maran Wilson maran.wilson@oracle.com
Tested-by: Maran Wilson maran.wilson@oracle.com
Upstream-commit-id: e563bc3dcd1
Diffstat (limited to 'Cryptlib/Cryptlib.diff')
0 files changed, 0 insertions, 0 deletions
