I've adjusted the MR to hash sysfs information on both sides. I am not quite sure how to best get access to the sha implementation in crypt.c though. As far as I understand it's not part of the unix lib. I am also not sure putting the sysfs/containerid handling into ntdll is at all that pretty.
Input would be greatly appreciated.