Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp413445pxu; Tue, 5 Jan 2021 14:58:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5LgDFWVc66PDctYa8+fIKgDymALhGBUM/PRDB4niIvIsgsqccXnN3lAXAU3ZggsQoTaxj X-Received: by 2002:aa7:c4c2:: with SMTP id p2mr2003803edr.63.1609887483762; Tue, 05 Jan 2021 14:58:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609887483; cv=none; d=google.com; s=arc-20160816; b=KaGGnbexQXUwQgsZZfSWT38rO0yp58xwDzusXw7PkA+loj4QDuyFhQyWVibGN/pSvc CcL2E91Csh0khhL6vJM7rtVtQCF/I8w8dJZZkwtvcuwhOGNuKAnL3yViMyPgm87X4WCQ Lzb/qITTLwGNz0Dx03hAAcllhpUEimidTbPBV3G/q6CnJA7bL+CD1XlWQ3LwfJgIWoKf gKmFPlGcyE0TPyCMoVSMr0cj1stx3gwISPZCH/QlaEOgpOIH2S68MfU2j7X8Q7luv36r 2MqJW8aUv4xLWoAPAnlUp91DfVTwlH39/MX0us/P4M38mU1bb34QDTrLEsFHfm5XzISx 4yDw== 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=EVc75e2pcyzUJYUa1pwKwEYc67I7LZZCYXHcE/6twSs=; b=T+HvLjfMRIVpyT/pAxuzhWxOjCXyQ+vrQw4nmlCVJXtQ4cPgcaQbik9GhbYlcoO3xZ ETZGT1Zk9S/3CUjbRAd65F66ynEgysxZW75ENy8YorjKR19zet8O8WxrZBHCKNtRYexy /CUm/b5ye8wg/G2d/Yulsh0zcAnTRGxysrLUoiNWafEoKxwGRa4eJXRbkj2uj/SolM3E UDs2neyxpxL63hGBSbNHQdLgvdIRPLQmhpcdBhYKbUkVAo/aKNhDpYS3PRqESweW7wT1 pMxVywyNy1/Rjl8VL8nU/0zRlQrGP9Udzg7D/GdCQ7mrr7l3XD7HLbomA9uapBsJDhqS 4ESg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=pSEf01qf; 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 de12si211550edb.421.2021.01.05.14.57.40; Tue, 05 Jan 2021 14:58:03 -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=pSEf01qf; 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 S1729548AbhAEUNl (ORCPT + 99 others); Tue, 5 Jan 2021 15:13:41 -0500 Received: from linux.microsoft.com ([13.77.154.182]:43928 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727744AbhAEUNl (ORCPT ); Tue, 5 Jan 2021 15:13:41 -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 A527520B7192; Tue, 5 Jan 2021 12:12:59 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com A527520B7192 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1609877580; bh=EVc75e2pcyzUJYUa1pwKwEYc67I7LZZCYXHcE/6twSs=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=pSEf01qfw5N4YwxF49diw9lCEpw7NEroG9OpS2A7BH0DJB5yCKeHX6LmxXKxNuKUR jwH1L9IytifLtZFKKtVQOJ9gEk4tFU6a7G5lK5jui2QCL3EFx7xCRxDaeivWXFK8zg gIRjC4O5ISWuZn4aMF9pyVr75TLGMC6q3u5BRZRw= Subject: Re: [PATCH v9 4/8] IMA: add policy rule to measure critical data To: Mimi Zohar , stephen.smalley.work@gmail.com, casey@schaufler-ca.com, agk@redhat.com, snitzer@redhat.com, gmazyland@gmail.com, paul@paul-moore.com Cc: tyhicks@linux.microsoft.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> <2e0baa1902b6f360e542f92906d077d44e53e59e.camel@linux.ibm.com> From: Tushar Sugandhi Message-ID: Date: Tue, 5 Jan 2021 12:12:58 -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: <2e0baa1902b6f360e542f92906d077d44e53e59e.camel@linux.ibm.com> Content-Type: text/plain; charset=iso-8859-15; 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-24 5:48 a.m., Mimi Zohar wrote: > Hi Tushar, > > Please update the Subject line as, "Add policy rule support for > measuring critical data". > > On Sat, 2020-12-12 at 10:02 -0800, 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 patch does not restrict measuring critical data, but adds policy > rule support for measuring critical data. please update the patch > description accordingly. > Will do. Will update the patch description accordingly. > Other than that, > > Reviewed-by: Mimi Zohar > Thanks a lot for the Reviewed-by tag. :)