[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1561722101.4264.3.camel@linux.ibm.com>
Date: Fri, 28 Jun 2019 07:41:41 -0400
From: Mimi Zohar <zohar@...ux.ibm.com>
To: Thiago Jung Bauermann <bauerman@...ux.ibm.com>,
linux-integrity@...r.kernel.org
Cc: linux-security-module@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ima: Update MAX_TEMPLATE_NAME_LEN to fit largest
reasonable definition
On Thu, 2019-06-27 at 20:25 -0300, Thiago Jung Bauermann wrote:
> MAX_TEMPLATE_NAME_LEN is used when restoring measurements carried over from
> a kexec. It should be set to the length of a template containing all fields
> except for 'd' and 'n', which don't need to be accounted for since they
> shouldn't be defined in the same template description as 'd-ng' and 'n-ng'.
>
> That length is greater than the current 15, so update using a sizeof() to
> show where the number comes from and also can be visually shown to be
> correct. The sizeof() is calculated at compile time.
>
> Signed-off-by: Thiago Jung Bauermann <bauerman@...ux.ibm.com>
Thanks, it's now in next-queued-testing.
Mimi
Powered by blists - more mailing lists