|
From: Saurabh A. <tan...@gm...> - 2007-07-30 12:17:55
|
Hello Till
On 7/30/07, Till Bentz <ti...@on...> wrote:
> Hello,
>
> I was wondering if someone could help me with figuring out how to read the
> xxxx_runtime measurements from inside a Java program. I implemented a Java
> tool, that does the TPM quote. Now I want to read the measurements done by
> IMA but I somehow can't read the file. I think a problem might be that the
> file has a size of 0 and therefore is not readable with Java (?)
to do the same, I used linux command line inside my java program, like this :
------------
String[] cmdArray = {"cp",
"/sys/kernel/security/ima/ascii_runtime_measurements",
"/root/iml.txt"};
Runtime.getRuntime().exec(cmdArray);
------------
and then use the iml txt file as you wish to.
HTH
best
Saurabh
|