Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1928916ybv; Thu, 6 Feb 2020 12:27:31 -0800 (PST) X-Google-Smtp-Source: APXvYqy8bYscBy9A6HdUl2uSCA4mtH9XIXHr7721abEgzH/ewSOMB2qYLj+1oixyzZ3vNKa4Ugvp X-Received: by 2002:aca:5a04:: with SMTP id o4mr8239397oib.71.1581020851058; Thu, 06 Feb 2020 12:27:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581020851; cv=none; d=google.com; s=arc-20160816; b=OgpM2hrszXY3DDGTtN5igi/MeYnB9xN0MfVqP7DUQZ7cW2AyaEndYaxFbLzUbkZnvP 33TiMLqwDdnbB/Rn6/WAMNtQQisuxbcGODB4R+xntz6F4qYej8CH/6BOHE00NRERYEal a5G+T2s3R20BIHONn9D3SvQEB9v40F9yyR7lquxIDmZqLOlC/UxdrsUsbxaWT9+F7/UO rh9Ht9KOcV4E+kHT4Xchcghm6PjLyo2NFg/UfRAVL3XzUk1nXEQ4Ien/70S8XMQpB5ye JextFwWT6z4Zw/UT9C0LnrZwQbwjUXax+MQ2IiBXxJsGqz8k8GQzxobpiVxybqhympdW GKSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=ek3wk0vlRx/nTBK8rJfMDkLLjOculHaixGv/c0l6jks=; b=ng43Wjq5pz8E32d8Ae8IFEuTzTVI2Mg9BvwhkRV8+8ORPKUkWEfAF458B9ggaBkfvu UTR6pDJPOHAdTg87Db+eqRA89Fvr50vkdEuEOOKmoctzmw1t7+GfM21sKJ/hgUR3sPS3 Rff+5UTdRyB5Okc/supXOW5kGV3U3rECoJgV/IJyrdurehInf6FgI5um/uBC0/W4y6sR UJwGq73sRoK/9aLYIE4GDXm5iNt0x7ru5bHYW5WrYKhtwf5bHTWPhwoNaVSSuZgqiU8h 8vXJMlzrAOEVKUYqxlBeXpFQCSLs+aBfEKp1dXVsRk2TtZli6MiCa3uvQjp1fYJ2xBoa VGEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m8si2675805oim.180.2020.02.06.12.27.18; Thu, 06 Feb 2020 12:27:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728023AbgBFUZQ (ORCPT + 99 others); Thu, 6 Feb 2020 15:25:16 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:25880 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727845AbgBFUZP (ORCPT ); Thu, 6 Feb 2020 15:25:15 -0500 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 016KDlEa060947; Thu, 6 Feb 2020 15:22:12 -0500 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 2y0kne6euw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Feb 2020 15:22:12 -0500 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 016KEXKf063196; Thu, 6 Feb 2020 15:22:12 -0500 Received: from ppma05wdc.us.ibm.com (1b.90.2fa9.ip4.static.sl-reverse.com [169.47.144.27]) by mx0a-001b2d01.pphosted.com with ESMTP id 2y0kne6eu6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Feb 2020 15:22:12 -0500 Received: from pps.filterd (ppma05wdc.us.ibm.com [127.0.0.1]) by ppma05wdc.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 016KJUhW002391; Thu, 6 Feb 2020 20:22:10 GMT Received: from b03cxnp08027.gho.boulder.ibm.com (b03cxnp08027.gho.boulder.ibm.com [9.17.130.19]) by ppma05wdc.us.ibm.com with ESMTP id 2xykc9qtdq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Feb 2020 20:22:10 +0000 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 016KM90S34799880 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 6 Feb 2020 20:22:09 GMT Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 171E9BE053; Thu, 6 Feb 2020 20:22:09 +0000 (GMT) Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9DE00BE054; Thu, 6 Feb 2020 20:22:05 +0000 (GMT) Received: from swastik.ibm.com (unknown [9.160.44.62]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTP; Thu, 6 Feb 2020 20:22:05 +0000 (GMT) Subject: Re: [RFC PATCH 0/2] ima: uncompressed module appraisal support To: Eric Snowberg , dmitry.kasatkin@gmail.com, jmorris@namei.org, serge@hallyn.com Cc: zohar@linux.ibm.com, dhowells@redhat.com, geert@linux-m68k.org, gregkh@linuxfoundation.org, nayna@linux.ibm.com, tglx@linutronix.de, bauerman@linux.ibm.com, mpe@ellerman.id.au, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200206164226.24875-1-eric.snowberg@oracle.com> From: Nayna Message-ID: <5c246616-9a3a-3ed2-c1f9-f634cef511c9@linux.vnet.ibm.com> Date: Thu, 6 Feb 2020 15:22:04 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: <20200206164226.24875-1-eric.snowberg@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-06_03:2020-02-06,2020-02-06 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 spamscore=0 malwarescore=0 suspectscore=0 mlxlogscore=999 adultscore=0 impostorscore=0 phishscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002060149 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/6/20 11:42 AM, Eric Snowberg wrote: > When booting with either "ima_policy=secure_boot module.sig_enforce=1" > or building a kernel with CONFIG_IMA_ARCH_POLICY and booting with > "ima_policy=secure_boot", module loading behaves differently based on if > the module is compressed or not. Originally when appraising a module > with ima it had to be uncompressed and ima signed. Recent changes in 5.4 > have allowed internally signed modules to load [1]. But this only works > if the internally signed module is compressed. The uncompressed module > that is internally signed must still be ima signed. This patch series > tries to bring the two in line. We (Mimi and I) have been trying to understand the cover letter. It seems "by internally signed" you are referring to modules signed with build time generated keys. Our interpretation of the cover letter is that IMA originally did not support appended signatures and now does. Since the modules are signed with build time generated keys, the signature verification still fails, as the keys are only available on the .builtin keyring and not the .ima keyring. Lastly, there is nothing in these patches that indicate that the kernel modules being compressed/uncompressed is related to the signature verification. Thanks & Regards,      - Nayna