Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp148911pxb; Fri, 15 Jan 2021 09:30:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJycqWl5NIUe2JOmdY9ENnrDgIKbc1ByPlDbTZFcXiMhHSvclUTn/VqKMLNRRT/MOMLwV0uk X-Received: by 2002:a17:907:9710:: with SMTP id jg16mr3450500ejc.286.1610731841347; Fri, 15 Jan 2021 09:30:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610731841; cv=none; d=google.com; s=arc-20160816; b=x6CYXfoicA8FO+nc2YF7wM/IiGI0oeScxdk/OJsDT5N1UOx5hxe4ceBAvCCFNiG8UF RsbczToI34kHbA/EO3mZCHucmoi5AfwsBLui6mzZs0B72obeZsMPezfLsdYpXKjxk0hJ ZawAWjivt5BNUWV50SczCl4e7wq3+kaQOQ8AaHPWzO4vGBTQs4fk0yF6Q+0gE4t02CBb FULLK2Z5BGkSaG3yemdbe8PLPqF9foXgfqfx2I7vxSUNzOKz4mV93g/GLfRpQ1/PeHbv uPpv9EDjChMkB8ZQ5PLyBgWvgUZIfBukKR0VFTJ8lxlGTbHJQ5pyJyl/VBMaHWUcnG9P 1RFw== 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=+VJnsF4kFMO6bAfGl4TRzpeiil80GFM1LYOrc/fFgg4=; b=A2at7ikZ5OPe5MoTTQZFyA8K5vlh5upttOjoKbEjHaMGNTdCSfAA8Yu6BAR37qh+Yj V0WAGjnYnz513eqi5m/+0Op8ki0BdzIpAHKqJ5GYmunuQslOjO/bGLL2G6fyLAmByekN 5cMfPaYeKKv/FJkl50PaVbILeeE4JVfgFdqixzFjGJlZlddLbmi8+mTBjX4L++s/4QYH Piy/bPQbzThfzdq0EIPtViPeUT/fs2pkTTg0lF7g04L+Zho0DpHyC+vZArTXtt6sYnWt zZxZ0WPrhbbMAqS/X5NIbNTZRe0BhwGI0iYaE2+r0JN//pCMVgelly17jRXyZg+iNqVf 92yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=GcDkztX8; 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 cb22si760403edb.112.2021.01.15.09.30.15; Fri, 15 Jan 2021 09:30:41 -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=GcDkztX8; 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 S1728326AbhAOR1k (ORCPT + 99 others); Fri, 15 Jan 2021 12:27:40 -0500 Received: from linux.microsoft.com ([13.77.154.182]:55854 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725818AbhAOR1k (ORCPT ); Fri, 15 Jan 2021 12:27:40 -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 C7DDE20B7192; Fri, 15 Jan 2021 09:26:58 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com C7DDE20B7192 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1610731619; bh=+VJnsF4kFMO6bAfGl4TRzpeiil80GFM1LYOrc/fFgg4=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=GcDkztX85xILiONq+dpyAyykK0sFFW73ywn6s2xpmwl+hgv6cCI5ts1pRJpXdOIUf WJ8NdCyON6431Nmj0nJTdrsP53FIjNu/ynst/WTe54A0goPkQX95QdQJZKN3f1ulUi djxo3L4EWQJu9LE92YwHmOGZg1RKdfNDumLiUWvc= Subject: Re: [PATCH v10 0/8] IMA: support for measuring kernel integrity 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: <20210108040708.8389-1-tusharsu@linux.microsoft.com> <5189c15054885863b1b5cb86a43bec09725d8650.camel@linux.ibm.com> From: Tushar Sugandhi Message-ID: Date: Fri, 15 Jan 2021 09:26: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: <5189c15054885863b1b5cb86a43bec09725d8650.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 2021-01-15 4:54 a.m., Mimi Zohar wrote: > On Thu, 2021-01-07 at 20:07 -0800, Tushar Sugandhi wrote: >> IMA measures files and buffer data such as keys, command-line arguments >> passed to the kernel on kexec system call, etc. While these measurements >> are necessary for monitoring and validating the integrity of the system, >> they are not sufficient. Various data structures, policies, and states >> stored in kernel memory also impact the integrity of the system. >> Several kernel subsystems contain such integrity critical data - >> e.g. LSMs like SELinux, AppArmor etc. or device-mapper targets like >> dm-crypt, dm-verity, dm-integrity etc. These kernel subsystems help >> protect the integrity of a system. Their integrity critical data is not >> expected to change frequently during run-time. Some of these structures >> cannot be defined as __ro_after_init, because they are initialized later. >> >> For a given system, various external services/infrastructure tools >> (including the attestation service) interact with it - both during the >> setup and during rest of the system run-time. They share sensitive data >> and/or execute critical workload on that system. The external services >> may want to verify the current run-time state of the relevant kernel >> subsystems before fully trusting the system with business critical >> data/workload. For instance, verifying that SELinux is in "enforce" mode >> along with the expected policy, disks are encrypted with a certain >> configuration, secure boot is enabled etc. >> >> This series provides the necessary IMA functionality for kernel >> subsystems to ensure their configuration can be measured: >> - by kernel subsystems themselves, >> - in a tamper resistant way, >> - and re-measured - triggered on state/configuration change. >> >> This patch set: >> - defines a new IMA hook ima_measure_critical_data() to measure >> integrity critical data, >> - limits the critical data being measured based on a label, >> - defines a builtin critical data measurement policy, >> - and includes an SELinux consumer of the new IMA critical data hook. > > Thanks Tushar, Lakshmi. This patch set is queued in the next- > integrity-testing branch. > > Mimi > Hello Mimi, Paul, Stephen, Tyler, Thanks a lot for reviewing this series and providing all the valuable feedback over the last few months. We really really appreciate it. Thanks, Tushar