|
From: Till B. <ti...@on...> - 2007-07-30 12:26:19
|
Hello Saurabh,
thanks for your help. I have one more question :)
Do you have to execute your program as root, or is there is possibility to
avoid this?
On 7/30/07, Saurabh Arora <tan...@gm...> wrote:
>
> 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
>
--
MfG
Till
**********************************************
Der Benutzer ist eine nicht zu
tolerierende Quelle der Unsicherheit
**********************************************
|