```uefisign reported every outcome other than success with an exit status of
uefisign: Separate file verdicts from failures1, so a caller could not tell "this binary is not signed" from "the
certificate would not parse" or "the crypto library is broken".
uefisign(8) exited 1This can be useful for everything, so a caller (e.g. a signing scripta tool such as the automatic bootloader updated
or a CI check) could not tell an unsigned or malformed file from a
program failure. Split the status into four values:discussed in D58990.
0 success (file was signed or with -V, contains a signature)Split the status into two ranges. A small value is a statement about the
1 program or library failurefile that was examined: 1 for the wrong signature state (not signed under
2 no-V, already signed when signature found (with -V)ning), 2 for a file that is not a conforming
3 invalid file format (input is not a conforming PE image)UEFI PE image. A failure of uefisign itself is reported with a value from
<sysexits.h>, which implies nothing about the file. A child killed by a
signal now exits 128 plus the signal number, so a status of 0 can no
longer mean that uefisign died.
PR: 298383What uefisign accepts, rejects and produces is unchanged: signing
Sponsored by: Defensoloader.efi, loader_simp.efi, loader_ia32.efi, gptboot.efi and boot1.efi
```gives byte-identical output before and after.
PR: 298383
Sponsored by: Defenso
Signed-off-by: Quentin Thébault <quentin.thebault@defenso.fr>