[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LRH.2.21.1906140515320.14107@namei.org>
Date: Fri, 14 Jun 2019 05:15:44 +1000 (AEST)
From: James Morris <jmorris@...ei.org>
To: Prakhar Srivastava <prsriva02@...il.com>
cc: linux-integrity@...r.kernel.org,
linux-security-module@...r.kernel.org,
linux-kernel@...r.kernel.org, zohar@...ux.ibm.com,
roberto.sassu@...wei.com, vgoyal@...hat.com
Subject: Re: [PATCH V8 2/3] Define a new ima template field buf
On Wed, 12 Jun 2019, Prakhar Srivastava wrote:
> A buffer(kexec cmdline args) measured into ima cannot be
> appraised without already being aware of the buffer contents.
> Since hashes are non-reversible, raw buffer is needed for
> validation or regenerating hash for appraisal/attestation.
>
> This patch adds support to ima to allow store/read the
> buffer contents in HEX.
>
> - Add two new fields to ima_event_data to hold the buf and
> buf_len [Suggested by Roberto]
> - Add a new temaplte field 'buf' to be used to store/read
> the buffer data.[Suggested by Mimi]
> - Updated process_buffer_meaurement to add the buffer to
> ima_event_data. process_buffer_measurement added in
> "Define a new IMA hook to measure the boot command line
> arguments"
> - Add a new template policy name ima-buf to represent
> 'd-ng|n-ng|buf'
>
> Signed-off-by: Prakhar Srivastava <prsriva02@...il.com>
> Reviewed-by: Roberto Sassu <roberto.sassu@...wei.com>
Reviewed-by: James Morris <jamorris@...ux.microsoft.com>
--
James Morris
<jmorris@...ei.org>
Powered by blists - more mailing lists