lkml.org 
[lkml]   [2021]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v3 2/3] ima: Return int in the functions to measure a buffer
From
Date
On Tue, 2021-07-20 at 12:38 +0000, Roberto Sassu wrote:
> > > This patch modifies the return type from void to int, and returns 0 if the
> > > buffer has been successfully measured, a negative value otherwise.
> >
> > Needed here is an explanation as to why ima_measure_critical_data() is
> > special.
>
> We don't want to unnecessarily calculate the digest twice.

That's what the "iint" cache is for. . This needs more a of an
explaintion as to why ima_measure_critical_data() is special.

thanks,

Mimi

\
 
 \ /
  Last update: 2021-07-20 15:03    [W:0.033 / U:1.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site