From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02C8BC433DB for ; Thu, 7 Jan 2021 13:09:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C1001223C8 for ; Thu, 7 Jan 2021 13:08:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727850AbhAGNI7 (ORCPT ); Thu, 7 Jan 2021 08:08:59 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:43342 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727453AbhAGNI7 (ORCPT ); Thu, 7 Jan 2021 08:08:59 -0500 Received: from imap.altlinux.org (imap.altlinux.org [194.107.17.38]) by vmicros1.altlinux.org (Postfix) with ESMTP id 2D40A72C8B0; Thu, 7 Jan 2021 16:08:17 +0300 (MSK) Received: from altlinux.org (sole.flsd.net [185.75.180.6]) by imap.altlinux.org (Postfix) with ESMTPSA id 15F434A473A; Thu, 7 Jan 2021 16:08:17 +0300 (MSK) Date: Thu, 7 Jan 2021 16:08:16 +0300 From: Vitaly Chikunov To: Mimi Zohar Cc: Patrick Uiterwijk , linux-integrity@vger.kernel.org, pbrobinson@redhat.com Subject: Re: [PATCH 1/2] Fix sign_hash not observing the hashalgo argument Message-ID: <20210107130816.wmzrcx5il4hdmah6@altlinux.org> References: <20210106094335.3178261-1-patrick@puiterwijk.org> <20210106094335.3178261-2-patrick@puiterwijk.org> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org Patrick, Mimi, On Thu, Jan 07, 2021 at 07:24:43AM -0500, Mimi Zohar wrote: > On Wed, 2021-01-06 at 10:43 +0100, Patrick Uiterwijk wrote: > > This fixes sign_hash not using the correct algorithm for creating the > > signature, by ensuring it uses the passed in variable value. > > > > Signed-off-by: Patrick Uiterwijk > > Thank you. This is a regression first introduced in commit > 07e623b60848 ("ima-evm-utils: Convert sign_hash_v2 to EVP_PKEY API"). Ah, when sign_hash() is used not via evmctl, but as a library imaevm_params may be not set. Thanks!