Hello everyone, hope that you are doing well :).
For the problem that am facing is actually that am working on a project which is about checking the integrity of the kernel image "vmlinuz" that is in the hard disk!
To do so, am trying to add a code that will be loaded by grub before the kernel started ! So this code is going to compute the HMAC of the kernel image to see if it's well authenticated or not ! Then load it .
The problem is , i don't know how to charge the image from the hard disk so i can check it ! I looked in the grub manual to see how does grub do things , but i was kinda complicated and i got lost!
So please if you can help i would be so grateful and happy for you help.
Best regards!
What I have tried:
Build the linux kernel ,
Implementing the programme that is going to compute the HMAC of the image.