summaryrefslogtreecommitdiffstats
path: root/discover/parser.c
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-03-20 10:49:32 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-03-23 11:39:35 +1100
commit3dfa4123bdf987aaa0e4bfd73d436c6bab0184ce (patch)
treed6a75c0bcb855b0851d6b9b82a3c45e935f5b869 /discover/parser.c
parentabf92c05c31955333719f1a83cffb0d0d194c770 (diff)
downloadtalos-petitboot-3dfa4123bdf987aaa0e4bfd73d436c6bab0184ce.tar.gz
talos-petitboot-3dfa4123bdf987aaa0e4bfd73d436c6bab0184ce.zip
lib/security: Fix broken if statements in gpg_validate_boot_files()
The patch ccb478ac "Add encrypted file support" removes two result = KEXEC_LOAD_SIGNATURE_FAILURE; statements from after the `if (verify_file_signature)` lines for the kernel and cmdline signatures. This appears to have been a mistake that snuck through testing, and would allow incorrect signatures to pass validation. Also fix up some confusing indenting in the decryption section. Reported-by: Brett Grandbois <brett.grandbois@opengear.com> Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/parser.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud