mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mimi Zohar <zohar@linux.ibm.com>
To: Eric Snowberg <eric.snowberg@oracle.com>
Cc: dmitry.kasatkin@gmail.com, paul@paul-moore.com,
	jmorris@namei.org, serge@hallyn.com, roberto.sassu@huawei.com,
	kanth.ghatraju@oracle.com, konrad.wilk@oracle.com,
	linux-kernel@vger.kernel.org, linux-integrity@vger.kernel.org,
	linux-security-module@vger.kernel.org
Subject: Re: [PATCH v4] integrity: Always reference the blacklist keyring with appraisal
Date: Thu, 27 Jul 2023 13:36:43 -0400	[thread overview]
Message-ID: <860501de903bba660adcdad3e3ccf750dc29b432.camel@linux.ibm.com> (raw)
In-Reply-To: <20230726211725.393056-1-eric.snowberg@oracle.com>

On Wed, 2023-07-26 at 17:17 -0400, Eric Snowberg wrote:
> Commit 273df864cf746 ("ima: Check against blacklisted hashes for files with
> modsig") introduced an appraise_flag option for referencing the blacklist
> keyring.  Any matching binary found on this keyring fails signature
> validation. This flag only works with module appended signatures.
> 
> An important part of a PKI infrastructure is to have the ability to do
> revocation at a later time should a vulnerability be found.  Expand the
> revocation flag usage to all appraisal functions. The flag is now
> enabled by default. Setting the flag with an IMA policy has been
> deprecated. Without a revocation capability like this in place, only
> authenticity can be maintained. With this change, integrity can now be
> achieved with digital signature based IMA appraisal.
> 
> Signed-off-by: Eric Snowberg <eric.snowberg@oracle.com>
> ---
> v4 changes:
>   Fixed typo
>   Also did some performance testing with this patch. With the associative array
>   implementation used within the keyring code, there doesn't seem to be much of a
>   difference between doing  an appraisal with an empty blacklist keyring and one
>   containing 1500 entries.  At this time it is unknown how many entries a user
>   would place in this keyring, but this seemed like a bigger number than most use
>   cases.  With the 1500 entries, there were only 7 lookups to get through the
>   entire list for a file not contained within it.  For something that was
>   on the list, there was an average of 4 lookups and a single string compare.
>   Based on this testing, IMHO, there could be a lot more entries added to the
>   blacklist keyring without any real performance issues.

Thank you for the blacklist performance testing.   The patch is now
queued in next-integrity-testing.

--
thanks,

Mimib


  reply	other threads:[~2023-07-27 17:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-26 21:17 Eric Snowberg
2023-07-27 17:36 ` Mimi Zohar [this message]
2023-07-31 17:04 ` Nayna

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=860501de903bba660adcdad3e3ccf750dc29b432.camel@linux.ibm.com \
    --to=zohar@linux.ibm.com \
    --cc=dmitry.kasatkin@gmail.com \
    --cc=eric.snowberg@oracle.com \
    --cc=jmorris@namei.org \
    --cc=kanth.ghatraju@oracle.com \
    --cc=konrad.wilk@oracle.com \
    --cc=linux-integrity@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-security-module@vger.kernel.org \
    --cc=paul@paul-moore.com \
    --cc=roberto.sassu@huawei.com \
    --cc=serge@hallyn.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®