|
From: rinberg\@libero\.it <ri...@li...> - 2007-08-31 07:39:17
|
> you forgot to specify the "&" in front of "mr" in your measure request=
.
>
> The 'write' takes a POINTER.
>
> Please try again changing
>
> write(fd_mreq, mr, sizeof(struct measure_request))
>
> to
> write(fd_mreq, &mr, sizeof(struct measure_request))
>
>
> Greetings
> Reiner
Thank you really for your quick answer, it saved me from a lot of worry a=
s the deadline of the project is coming...
This **solved my issue** :) btw I had those code lines from the:
/usr/src/linux/Documentation/ima/INSTALL
-----------------------------------------------------------------
if (write(fd_mreq, mr, sizeof(struct measure_request)) -- (A)
<error measuring>; |
/* now use the file -- see NOTE below */ |- protec=
ted
... | sectio=
n (see Note)
/* then close the file */ |
close(fd_config) -- (B)
-----------------------------------------------------------------
So this is a sort of "bug report" within the documentation, nothing serio=
us but I trusted them and didn't check the write.
Take care and thanks again,
Rinaldo Bergamini
|