Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1754991iob; Thu, 19 May 2022 13:46:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxA15gNDus7oIZfROfjzHhwUfrRCXcK/Xogvp+sSkZOeYPeqhVzacABEmHUzFPvnIYMLubF X-Received: by 2002:a17:907:3e8f:b0:6f4:645c:f418 with SMTP id hs15-20020a1709073e8f00b006f4645cf418mr5808016ejc.609.1652993218404; Thu, 19 May 2022 13:46:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652993218; cv=none; d=google.com; s=arc-20160816; b=eLFO0+YBnokSL2mLzBvj7SfrI7uoTFz2+QV8o0ZSuOBz5QeWqqfOOj6zyRWkIczJh5 OvCwOcNSjgrRI+v8zwby2oIlWzJ1Gso38twPaUAoy1jv9r7Nj5yL+E4QHI+NbJZXv3pR 3+a5rNzEKsMhaV4rVNVz2pCeMAztcwLVoaLrRY00i2anNErZAcMzeAcNaMJ6XaRPicTB gj+ALKF3DpIaQcPFtKbDackobMG8hQmx93eUcME21PBDMHI4Fg4gdLZZWOo7WyjLzyxu d8e1rOrCK6aWcPgb8Qp4RmDAEw9H56IqmubWAtAe3rnAd40kq9MSQCCM35PghxeyZKin HWHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature:dkim-signature; bh=dxgDt7d82EjBHhfAG9kd5LluVY9yJ4f3N9W1/o9ceGk=; b=Dh3WwynWPT/7Y0Z3Z1V5wcM46QokvZ5syXOAQZKeoD0lpKkcHJz4X80dc1+pLVQt+q eu2iTyqeUeBIqfcnL06+m3RlhKAgXD9sySYdsltCX0BA/VH2IR2CdRuBQ/C7vu5xTUJ7 r481zo4ZGQBaSDHy/AzX7xJNqBeRuKJG+I2VzdANONduEqqWCXRMvEv0fTS+9oASM9iM akHk3L7J23rQK//rdWNqgW0rVonMK9mqNnY91jOrFunnDVn26U8rQYDLccmjLBbquWjO BGtLWI0p1TZhnYqAWlvISU4vAhQGJDYyMzxyhrm/6RwYkFsJhzaClZfyTTnxssRYan2x eaEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=CDDuUvSe; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=CDDuUvSe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q3-20020aa7d443000000b00423f9a0d0a2si5685146edr.431.2022.05.19.13.46.31; Thu, 19 May 2022 13:46:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=CDDuUvSe; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=CDDuUvSe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240810AbiESPVq (ORCPT + 99 others); Thu, 19 May 2022 11:21:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239671AbiESPVk (ORCPT ); Thu, 19 May 2022 11:21:40 -0400 Received: from bedivere.hansenpartnership.com (bedivere.hansenpartnership.com [IPv6:2607:fcd0:100:8a00::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39F315D5CA; Thu, 19 May 2022 08:21:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1652973694; bh=+Y4Z/IQnsX+fk6BLy3bmRjeDws9K8BNXDaa4PLSicwE=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References:From; b=CDDuUvSeEW8eoY/l1jUVBZDU5GW3iacxJYIinJeOcJ4/kPftj2I5X6NX3GZOQx+wI 187SwPpR9pY3jCBnUZghj7XYbX8IGG9AaDtg5aw1qqjbIUfYcY62KwYLPdwSHJNnTR NSqkP+MbKvktxDR7NjsOmZmGtavowmw6qws2zC8A= Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id C92F41280B05; Thu, 19 May 2022 11:21:34 -0400 (EDT) Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LrKi1AHY0ytP; Thu, 19 May 2022 11:21:34 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1652973694; bh=+Y4Z/IQnsX+fk6BLy3bmRjeDws9K8BNXDaa4PLSicwE=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References:From; b=CDDuUvSeEW8eoY/l1jUVBZDU5GW3iacxJYIinJeOcJ4/kPftj2I5X6NX3GZOQx+wI 187SwPpR9pY3jCBnUZghj7XYbX8IGG9AaDtg5aw1qqjbIUfYcY62KwYLPdwSHJNnTR NSqkP+MbKvktxDR7NjsOmZmGtavowmw6qws2zC8A= Received: from [IPv6:2601:5c4:4300:c551:a71:90ff:fec2:f05b] (unknown [IPv6:2601:5c4:4300:c551:a71:90ff:fec2:f05b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id 9407D128096F; Thu, 19 May 2022 11:21:33 -0400 (EDT) Message-ID: <953c45678dc4b59e9e5de0e5c228e2e8a8ac558a.camel@HansenPartnership.com> Subject: Re: [PATCH v2] sign-file: Convert API usage to support OpenSSL v3 From: James Bottomley To: Kees Cook , David Howells Cc: David Woodhouse , Eric Biggers , Shuah Khan , Salvatore Bonaccorso , keyrings@vger.kernel.org, Adam Langley , Lee Jones , linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Date: Thu, 19 May 2022 11:21:32 -0400 In-Reply-To: <20220518215129.264872-1-keescook@chromium.org> References: <20220518215129.264872-1-keescook@chromium.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2022-05-18 at 14:51 -0700, Kees Cook wrote: > OpenSSL's ENGINE API is deprecated in OpenSSL v3.0, along with some > other functions. Remove the ENGINE use and a macro work-around for > ERR_get_error_line(). What answer was there to Eric Biggers' concern about token support in sign-file? https://lore.kernel.org/lkml/YVyKc51r2tfMmQuO@gmail.com/ If you're not doing ephemeral keys (as quite a few kernel builder's aren't) you really need a token to protect the signing key. The other point was that openssl3 hasn't converted most of its own engine code to the provider API, so the deprecation is a bit premature because it will be a while before provider based token libraries appear. If the goal is simply to not see the warnings, the compile flag you need is -DOPENSSL_API_COMPAT=0x10100000L James