I need a mechanism to check integrity of a software product or a file using the Trusted Platform Module. The main ideea is to modify the fork() system call so when we run the software, automatically check if it was "modified" or not, measuring the hash value.