go-tpm-tools icon indicating copy to clipboard operation
go-tpm-tools copied to clipboard

Add dm-verity parser from kernel command line

Open alexmwu opened this issue 1 year ago • 0 comments

  • Add DmVerityState.
    • DmVerityState will contain the attested dm-verity hash algorithms, root digests, and salts required for validating a dm-verity mounted device (e.g., root fs).
  • Add parseArgs and nextArg translated from kernel source
    • nextArg should copy the exact behavior of the kernel command line param and val parsing logic.
    • This PR builds on top of #144; start reviewing at commit 0ddd603.

This is currently limited to the syntax of the ChromeOS, non-upstreamed fork of dm-verity. It can currently only parse out one dm-verity hash.

alexmwu avatar Jul 06 '22 19:07 alexmwu