Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6606274ybx; Mon, 11 Nov 2019 11:42:58 -0800 (PST) X-Google-Smtp-Source: APXvYqxx+aSb9gKgnLq/9JR5I7ZzpEV1eHChLSbPXTmLXwvMVxhIDO2GXWfD44y093OD9ie3Qzct X-Received: by 2002:a50:eb91:: with SMTP id y17mr28248019edr.216.1573501378095; Mon, 11 Nov 2019 11:42:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573501378; cv=none; d=google.com; s=arc-20160816; b=FGRt8ujMSgskIiT0YjiA/eQFOpdCzzGbAXGow1T1wFfgY8mjakwjn4wSBi2eX/gT+d OvO4c8XM/C4Jk81awcDMPLKb0D1VO0Y5baZKpVKHiYj1PiSudUdbByBP2PUnLzyQiOfW AbLzofm6wQfgM6fvoLZNQsIsqIGxm0sIqDQw44AkyUzArlob3kGhd0tut3Q2BipAOFFO xpCaFcV6o2LuAGXtkVYUhfbcx09wIvYiwBgD3LPgqXA64xQNwXuhXYsWOLGHRSCQtoux G9Y7qyXLQOSaCHuwYmlXIJQIpfduNhx1SZLjfz+K4YTmgr4e4DSC7XIxytaMHncT8Y5W hekA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:to:from:subject:dkim-signature:dkim-filter; bh=yo/9FmZW0Y99bAu6iFa8LVJuZTCyAJDW2GqEslRJ+QQ=; b=qKCdNDHfZdrQzADygKS/WMWO2zF06DbWy8SMMxcYOqXON9rIsi58AH8ERyauVFd9kz Sg0NUjA1rNAx80VBYBEHQ21F+d5ZbZlsWaQEl8jKwYaN38LdW/wm0rnCO8W2RaMe4oLC qvhDbEH+k8R4rV9b3ClMIJqoqgxIrSKIyekMErFASYaeHWiPwXGkeli3MBLnwL/Ua8P8 8ebcFuy9qUuLo14QQzhbLn5UOmRf9dqTunDHF1F8GuB3ON+QHgHel6lz0ZJaPi9we+8D a3f4iB3/FHFMgGVTgQ+0SnbeBFr4mRFEUDQKddwAFxGckBXf5UFlBqTvhArKCH5WRe7n 4nrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=N2Ewm1z5; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o10si11723283edc.39.2019.11.11.11.42.32; Mon, 11 Nov 2019 11:42:58 -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; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=N2Ewm1z5; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727433AbfKKTlX (ORCPT + 99 others); Mon, 11 Nov 2019 14:41:23 -0500 Received: from linux.microsoft.com ([13.77.154.182]:47794 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727265AbfKKTlW (ORCPT ); Mon, 11 Nov 2019 14:41:22 -0500 Received: from [10.137.112.111] (unknown [131.107.147.111]) by linux.microsoft.com (Postfix) with ESMTPSA id 2D8A020B7192; Mon, 11 Nov 2019 11:41:22 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 2D8A020B7192 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1573501282; bh=yo/9FmZW0Y99bAu6iFa8LVJuZTCyAJDW2GqEslRJ+QQ=; h=Subject:From:To:References:Date:In-Reply-To:From; b=N2Ewm1z5bz02D6/2tZat1uKI5YJ406Flu+7c+jeChj9D8ThW6vkLp5W/mD56749Ty rokrIFXAJvZNzZpBhh47F7UNJRJUmRYv1xL7JEBzXuo1EcrQ851MNXaIV/8ddAp7vH cikiSBQ+XvskaHcFyMSN/RNW/oTO6hX1TIc1G1ts= Subject: Re: [PATCH v5 0/10] KEYS: Measure keys when they are created or updated From: Lakshmi Ramasubramanian To: zohar@linux.ibm.com, dhowells@redhat.com, matthewgarrett@google.com, sashal@kernel.org, jamorris@linux.microsoft.com, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, keyrings@vger.kernel.org, linux-kernel@vger.kernel.org References: <20191111193303.12781-1-nramas@linux.microsoft.com> Message-ID: Date: Mon, 11 Nov 2019 11:41:42 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20191111193303.12781-1-nramas@linux.microsoft.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/11/2019 11:32 AM, Lakshmi Ramasubramanian wrote: Hi Mimi, > Problem Statement: > > Keys created or updated in the system are currently not being measured. > > This change aims to address measuring keys created or updated > in the system: > > => Patches #1 through #5 update IMA policy functions to handle > measurement of keys based on configured IMA policy. > > => Patches #6 and #7 add IMA hook for measuring keys and the call > to the IMA hook from key_create_or_update function. > Keys are processed immediately - no support for > deferred processing. > > => Patches #8 through #10 add support for queuing keys if > custom IMA policies have not been applied yet and process > the queued keys when custom IMA policies are applied. I was wondering if it'd be better to split this patch set into two sets: 1st set including the patches for measuring keys without queuing support (Patches #1 through #7) 2nd set including the patches that add queuing support (Patches #8 through #10). thanks, -lakshmi