From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D850AC2D0BE for ; Wed, 4 Dec 2019 22:44:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9E829206DF for ; Wed, 4 Dec 2019 22:44:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="jXiBx/p3" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728521AbfLDWoE (ORCPT ); Wed, 4 Dec 2019 17:44:04 -0500 Received: from linux.microsoft.com ([13.77.154.182]:51090 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728072AbfLDWoE (ORCPT ); Wed, 4 Dec 2019 17:44:04 -0500 Received: from [10.137.112.108] (unknown [131.107.174.108]) by linux.microsoft.com (Postfix) with ESMTPSA id 3FC0320BE482; Wed, 4 Dec 2019 14:44:03 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3FC0320BE482 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1575499443; bh=6IUNk4Ucj8w6gtQy1jEid7FoUFDc03WlbVxiK/Geq8E=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=jXiBx/p3hqoEt9I8rMoEDAIfYNF7XedjvEBfknuJvB2V5HuurZXlZTRnCWe479VEl Crk0zp0+qd4nadLfglt9S6bBod62nQnIsVu8MWY2ZaqKOx0tbAPru1uoMp+WGOhr9B 6sESv2vxRhXi9TCCzsJjl9nXdRUUBRP1BQY98hAk= Subject: Re: [PATCH v9 5/6] IMA: Add support to limit measuring keys To: Mimi Zohar , linux-integrity@vger.kernel.org Cc: Mat Martineau , eric.snowberg@oracle.com, dhowells@redhat.com, matthewgarrett@google.com, sashal@kernel.org, jamorris@linux.microsoft.com, linux-kernel@vger.kernel.org, keyrings@vger.kernel.org References: <20191127015654.3744-1-nramas@linux.microsoft.com> <20191127015654.3744-6-nramas@linux.microsoft.com> <1575375945.5241.16.camel@linux.ibm.com> <2d20ce36-e24e-e238-4a82-286db9eeab97@linux.microsoft.com> <1575403616.5241.76.camel@linux.ibm.com> <89bb3226-3a2e-c7fa-fff9-3a422739481c@linux.microsoft.com> <1575458192.5241.99.camel@linux.ibm.com> From: Lakshmi Ramasubramanian Message-ID: <2c613462-825e-a3d1-9bf2-2314f0c1a4da@linux.microsoft.com> Date: Wed, 4 Dec 2019 14:43:59 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <1575458192.5241.99.camel@linux.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/4/19 3:16 AM, Mimi Zohar wrote: Hi Mimi, > > The integrity subsystem, and other concepts upstreamed to support it, > are being used by different people/companies in different ways.  I > know some of the ways, but not all, as how it is being used.  For > example, Mat Martineau gave an LSS2019-NA talk titled "Using and > Implementing Keyring Restrictions for Userspace".  I don't know if he > would be interested in measuring keys on these restricted userspace > keyrings, but before we limit how a new feature works, we should at > least look to see if that limitation is really necessary. > > Mimi I have updated the patch per your suggestion - if uid is specified in the policy for key measurement, then it is checked against the current user's credential. Please review the updated patch set (v10). thanks, -lakshmi