Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1980375pxu; Sun, 13 Dec 2020 09:30:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJxfKPaXHruFSD5MzcWnl98NeK7UM9O3V0DsgUUBsD5fSEzfzjw8qXCU9N1VqdBpF5GksMpZ X-Received: by 2002:a50:e083:: with SMTP id f3mr21471103edl.223.1607880602032; Sun, 13 Dec 2020 09:30:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607880602; cv=none; d=google.com; s=arc-20160816; b=m6zM1FjpSPkytuCUcjyYnQ4dn6Y9Pg2rXFFG1PU4QrirJpUtCd00FumNJBIk99375b Sj4kTPo/iZAiOX6pEEAiPsAiNivDP8Ao/0iDfxe+F1On2G/fqX9V2t4HXDfdobj6PsNB my3l7qMHw3Y8OnB+d0eFXKvJ8g4tKw6UXgqIPD8gJdCjMsgv/KHGSHLp0ssAhl5OjQzN xIlXiNZKqbcbrKJTbidCtskdzbItLSmQ1mRb2AUkN84wVPAXfV3M8mEhb70yawVuxBYS s+txY4SCFHGG7+ByZHT+7YKdTSkvYwxF3y8deL+o2qAvXRMx7avN1nuFHvgT8bR4hM67 cwFA== 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=bsEiZa8Vfo5H0oWB7jXyVaGOel8pSGlEk1zPI0doZwM=; b=PORCSVNi8036fdRzDvynsHVAjyTSJ+sL3viNYUQCUjmUmhDPiIjRuEpvzArX10om75 gw39uyelBYe7gWmRhub5tRZvPhOsHRJe8Yz4fVXB5OYO/6Lkgglrn8LRYf1EF4xPOqsT REI37LPiCQVB1z7yCzLpIJ1mRt2UQEUYUH3aO/FMbMIO6jB4499glEKa9M6Ua494bYxC p7zhue+39+wRBAQxphpa/JrEPDw3rAYRCU43Esh4lgPnvJ0A4JXyJFBWQ0j502pghTKY 92Px9vmooKap4qwfsTZHukVayDoRU8x4S0TziMEPIu6kjIAFp8ogf6f322ibEo85yyD2 ONhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b="TD+1r/d4"; 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 r2si8948237edx.114.2020.12.13.09.29.39; Sun, 13 Dec 2020 09:30:02 -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="TD+1r/d4"; 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 S2501974AbgLMBWs (ORCPT + 99 others); Sat, 12 Dec 2020 20:22:48 -0500 Received: from linux.microsoft.com ([13.77.154.182]:48300 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439971AbgLMBWe (ORCPT ); Sat, 12 Dec 2020 20:22:34 -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 AC71F20B717B; Sat, 12 Dec 2020 17:21:52 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com AC71F20B717B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1607822513; bh=bsEiZa8Vfo5H0oWB7jXyVaGOel8pSGlEk1zPI0doZwM=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=TD+1r/d40HbYXZlDWkY6k22sVtz0hLH8vPpjji4tFTQYaShfynyzT20wi8OGWvQSR xs2A5JkUf/+Mrny7ABF3mpEMABzedLXlbmX1ltyMa8MZODHZuy1ElmfcYRCSXfa0Ja iLWh973lkLayk5ueJNF6wJjofFDrJmphL2lMw65U= Subject: Re: [PATCH v9 5/8] IMA: limit critical data measurement based on a label 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-6-tusharsu@linux.microsoft.com> <20201212192049.GJ4951@sequoia> From: Tushar Sugandhi Message-ID: <7c90e5e5-6408-6f9b-2eed-6fa45cc92806@linux.microsoft.com> Date: Sat, 12 Dec 2020 17:21:52 -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: <20201212192049.GJ4951@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:48, Tushar Sugandhi wrote: >> System administrators should be able to limit which kernel subsystems >> they want to measure the critical data for. To enable that, an IMA policy >> condition to choose specific kernel subsystems is needed. This policy >> condition would constrain the measurement of the critical data based on >> a label for the given subsystems. >> >> Add a new IMA policy condition - "data_source:=" to the IMA func >> CRITICAL_DATA to allow measurement of various kernel subsystems. This >> policy condition would enable the system administrators to restrict the >> measurement to the labels listed in "data_source:=". >> >> Limit the measurement to the labels that are specified in the IMA >> policy - CRITICAL_DATA+"data_source:=". If "data_sources:=" is not >> provided with the func CRITICAL_DATA, the data from all the >> supported kernel subsystems is measured. >> >> Signed-off-by: Tushar Sugandhi > > Reviewed-by: Tyler Hicks > > Tyler > Thanks again Tyler. ~Tushar