Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1980236pxu; Sun, 13 Dec 2020 09:29:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfWXchKwBLx4a4+8T63zgLjdhwxxzUYYuvjC/RrrvB5KM8RXQgRsqlqQNspBbd4PZAbhUk X-Received: by 2002:a17:906:cb86:: with SMTP id mf6mr6337016ejb.57.1607880585007; Sun, 13 Dec 2020 09:29:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607880585; cv=none; d=google.com; s=arc-20160816; b=AzLtVVayotZFpXjSd2klGtB3mlhd24R1VwQpsz8bsk2QNksE+ScE95+jMnEyAy4Vk/ QsgWhpInYGL8V9zaqGWeX7ibiJfUwz1gczwqBcSup88rpV32ELKd5Xq3tJAjXgzHYZYk Peg/sy1OozvtVoUiBJxVQJF5fEBMNWI0J7x7295sk3PcUPfEY7taedY4C6UHdU3fLxPS JP3WIDZ2x3fXPcMjqMtZ/3B/QQ8vEUsRaFAdwL/BciQzDGDKWHJ3gDJyPmQ/cXwD/r/D X8stWgFObYzaPuh92jHUUDedbGVIeRvkRO4X68+7jNbkL0r3ldDm2jgw5/OH2fPpBGuB bR6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-filter; bh=kz3wKCtkMGRbBL7DgaNsjN9rDf1wDVaCx3hZCXAf0YA=; b=z8Gwjyc0DDcoefwlpxg3NEkNG72XQmdcZq9UWyNKkFZyivSls/N5KP1UZbwshhrkth 64VNniEn76xu9lP8Dz7xU3m0yS4W9x6aWx9WjJTBSZe0yD1IiAI+8EK15QC1A+j+VauQ 67e4M9FcsVzWuOhjtDQyRwJhrQ4R1evn09zSrzxsBoWn/Hk7gp94o7qOmEOv45y+nzUl /p1ON1ssYhBJg5GybmDKaHuseB8xTx1XUyWEEa6tVwSp7ejCZM+9Br9giW9E74rIByHJ gLCLHozHsS186Fr9BtO2q8NdYow+EqMyp2IIZ9jkb889G5AreULO7YkD6XzgtbfoRbjn Lmjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=C3reOcaS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id u24si4680922ejb.106.2020.12.13.09.29.22; Sun, 13 Dec 2020 09:29:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=C3reOcaS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2501964AbgLMBWK (ORCPT + 99 others); Sat, 12 Dec 2020 20:22:10 -0500 Received: from linux.microsoft.com ([13.77.154.182]:48242 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439971AbgLMBWB (ORCPT ); Sat, 12 Dec 2020 20:22:01 -0500 Received: from [192.168.86.31] (c-71-197-163-6.hsd1.wa.comcast.net [71.197.163.6]) by linux.microsoft.com (Postfix) with ESMTPSA id 5733E20B717A; Sat, 12 Dec 2020 17:21:20 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 5733E20B717A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1607822480; bh=kz3wKCtkMGRbBL7DgaNsjN9rDf1wDVaCx3hZCXAf0YA=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=C3reOcaSGuJ4JUEGIZgSbUmivzlOLZUuB2+Ima2rwXFTJrhrg5VUAcKJI0+vDnG8f FnRquP3CNqVci8aPC6uhcL1RPnyZEY3I7PalY+esT6oqTFD1jN7QaVfLXvLNRcISt4 tRj+/NHvT22VeobtseQUinjEouE6QnolpX5c5VDE= Subject: Re: [PATCH v9 4/8] IMA: add policy rule to measure critical data To: Tyler Hicks Cc: zohar@linux.ibm.com, stephen.smalley.work@gmail.com, casey@schaufler-ca.com, agk@redhat.com, snitzer@redhat.com, gmazyland@gmail.com, paul@paul-moore.com, sashal@kernel.org, jmorris@namei.org, nramas@linux.microsoft.com, linux-integrity@vger.kernel.org, selinux@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, dm-devel@redhat.com References: <20201212180251.9943-1-tusharsu@linux.microsoft.com> <20201212180251.9943-5-tusharsu@linux.microsoft.com> <20201212192022.GI4951@sequoia> From: Tushar Sugandhi Message-ID: <17b756ea-5097-215e-fcad-c2d06f46ec23@linux.microsoft.com> Date: Sat, 12 Dec 2020 17:21:19 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201212192022.GI4951@sequoia> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-12-12 11:20 a.m., Tyler Hicks wrote: > On 2020-12-12 10:02:47, Tushar Sugandhi wrote: >> A new IMA policy rule is needed for the IMA hook >> ima_measure_critical_data() and the corresponding func CRITICAL_DATA for >> measuring the input buffer. The policy rule should ensure the buffer >> would get measured only when the policy rule allows the action. The >> policy rule should also support the necessary constraints (flags etc.) >> for integrity critical buffer data measurements. >> >> Add a policy rule to define the constraints for restricting integrity >> critical data measurements. >> >> Signed-off-by: Tushar Sugandhi > > This looks nice. Thanks for the changes! > > Reviewed-by: Tyler Hicks > > Tyler > Thanks for the detailed review on this series Tyler. We really appreciate it. ~Tushar