Skip to content

Commit

Permalink
criu/files-reg.c: add build-id validation functionality
Browse files Browse the repository at this point in the history
efi.h: Required for accessing the build-id of .efi files

This adds functions to find, store and compare with the stored build-id.
get_build_id() calls 32-bit or 64-bit helper functions depending on
the bitness of the ELF file after first ensuring that it is actually
an ELF file by checking for the magic number.

The number of iterations while searching the elf file for the
build-id before giving up (500 while searching the note section)
are limited.

Signed-off-by: Ajay Bharadwaj <ajayrbharadwaj@gmail.com>
  • Loading branch information
AnorexicAtticusFinch authored and avagin committed Oct 20, 2020
1 parent 7b18c13 commit 9191f87
Showing 1 changed file with 385 additions and 10 deletions.
Loading

0 comments on commit 9191f87

Please sign in to comment.