Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp413694pxb; Thu, 14 Jan 2021 08:53:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwK/ECVdNiIgCajFzhulmv4cOGKAb/EwNGoRCVyp7qy4M6uxrZ2r/Gscr1GcnoNttfXWSXl X-Received: by 2002:a17:906:1712:: with SMTP id c18mr6035671eje.417.1610643234636; Thu, 14 Jan 2021 08:53:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610643234; cv=none; d=google.com; s=arc-20160816; b=awNxOPrIeyK7g/hKIGr4kGIBw0AfAw62x7OleBv8YSGlIJVIPSoFLixsjJAgcL/zSX N1pQYbxjs4tBmrKSHIIqwxL0/seDKy+DO3nfVJklsGjfX+LAOTRHuq+cY5+faE9msSfs xXdN5DfPNAkTIAJ266GQ6Gm8DdMBqZxNjAIjmfyQsKBMMXLCVKClLzPxKxZoruxhM4h+ VyBCcszp9Ge5iyz3ljxp8O0Q65COHq09P+N+oF4diHHftJwlva9esVrKdd5J9AB0+Ela qTKdunjdBwe8lCVk/0AIJ5/mi3UJ0sW6eRTYuNE5soOd5IdqmdQgxLgJumjwGKKrURPQ ST1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=G3k27iIjxC7sh/PZO3qnIJ/sRNHZDFHKlX0RIApltSw=; b=YrMr3i53uLfYtmYPSjIOs6IZwKeUMqxoZ4zWSg2hZVQMtR0OOan5c+wCZ8hJPuvIeJ De2/EfkntvTWkFGSp4AodqIq2LATpmCsArCKJ2GyzLaQB7DQbdq2laNq7x7aD0NIPKJS 8P4gZz5GyAQWNXBADfHJ/QBUs4MM/vTM+7SBbaf9iLYcSjtqYmT5Fn+BI1RVDowqj6jp AjQ3I5K4Gjo7sDYq4Y67Iw30i1jHiibpJJm4yEEzjAqj0E7v/jVfTbBZm++v0tKzUIbE PCaD1c7RZ7hrwBezRlD6g9Ne0Q916pzFQqDt87IMfQT8anlWtZB+yE5LxCmfJNJdw8hq wdsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b="ZgyRh/yU"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d16si2671973eja.63.2021.01.14.08.53.30; Thu, 14 Jan 2021 08:53:54 -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=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b="ZgyRh/yU"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726043AbhANQv4 (ORCPT + 99 others); Thu, 14 Jan 2021 11:51:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726395AbhANQvz (ORCPT ); Thu, 14 Jan 2021 11:51:55 -0500 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE6D1C061757 for ; Thu, 14 Jan 2021 08:51:14 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id p22so6407676edu.11 for ; Thu, 14 Jan 2021 08:51:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=G3k27iIjxC7sh/PZO3qnIJ/sRNHZDFHKlX0RIApltSw=; b=ZgyRh/yU2M1e+J10UbjQxSUSlEd1XLOVgu1/lr5YUK1UzzPdMEaMqpQbLlmBzu9XBK V04Guk2sRd0aCET6WUAxwLX2ZUNIOC/Y/CTQUzYWd1HeEQmdJqt27gbrcy8iZJHnrujQ Bi3BR0vhJBtgQw86Xh1Jb5JdeWYxjRnIUdJABnuhQ/7PyiVVx9VLk16mlluO9f3m6twP SAc2VypVxfSNrA9A5K25M+PCVLcAfnBzI1fMFzWQgs+klUhR8L6YzcmFEWUsDNVRwMku p23/mulW55bGoHjesHn339vKbZLy7b5Lsegd5H1CZ+gvAizb0+1lQx7E9vvbqVOduB7s x5Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=G3k27iIjxC7sh/PZO3qnIJ/sRNHZDFHKlX0RIApltSw=; b=XQtBtwViDgoxIi34EpCDzZxDgdzvqv11MITW3Mvagwn3Gjjj2RFeQ0IRSKzSE1SA80 k/SS+qcp22rGwnzBuYnyStMRO3Y9Jz7Bku48sE8XO4U1tJTw+weATRMtEIZh7OFlj2ho c3+62jsuDFFSb7PjR/U7FfGrGkQ57PaW/Yq6G/z10UF06FzxS+NbOQKQjXyd2kJ1dWSy HTgDEqXvzjdxXXOuNDDKvaQM8GdK+8furVqXqlAyidVmePp10OOf7ARS4ze7liBn+ukb HxCiRzMUclQkqST+JtwckvQ+I6d/Op+arDtFaihthc7bL/VQu/x3GCd0MEByRLazVFIp 9vIw== X-Gm-Message-State: AOAM533zNEs0v4kavUa/zEaL2dLIp3QbMkTpCWsge18Tn94r6jY9aqVF /QXJbIN7uBE1YT386635eJrlYfqt0vHAbV4o9aBN X-Received: by 2002:aa7:d7d8:: with SMTP id e24mr6250325eds.135.1610643073181; Thu, 14 Jan 2021 08:51:13 -0800 (PST) MIME-Version: 1.0 References: <20210108040708.8389-1-tusharsu@linux.microsoft.com> <20210108040708.8389-9-tusharsu@linux.microsoft.com> <97328fc71687a0e1c327f6821548be9ba35bb193.camel@linux.ibm.com> <71cddb6c8676ccd63c89364d805cfca76d32cb6e.camel@linux.ibm.com> <3746bc7673df25354411151442a7772b867be396.camel@linux.ibm.com> <99be76345f375bb2f485f08a53dcb8ed806dc538.camel@linux.ibm.com> In-Reply-To: <99be76345f375bb2f485f08a53dcb8ed806dc538.camel@linux.ibm.com> From: Paul Moore Date: Thu, 14 Jan 2021 11:51:02 -0500 Message-ID: Subject: Re: [PATCH v10 8/8] selinux: include a consumer of the new IMA critical data hook To: Mimi Zohar Cc: Lakshmi Ramasubramanian , Sasha Levin , Tushar Sugandhi , Stephen Smalley , casey@schaufler-ca.com, agk@redhat.com, snitzer@redhat.com, gmazyland@gmail.com, tyhicks@linux.microsoft.com, James Morris , linux-integrity@vger.kernel.org, selinux@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, dm-devel@redhat.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 14, 2021 at 11:44 AM Mimi Zohar wrote: > > [Cc'ing Sasha] > > Hi Lakshmi, > > On Thu, 2021-01-14 at 08:22 -0800, Lakshmi Ramasubramanian wrote: > > On 1/13/21 6:49 PM, Mimi Zohar wrote: > > > >>> Lakshmi is trying to address the situation where an event changes a > > >>> value, but then is restored to the original value. The original and > > >>> subsequent events are measured, but restoring to the original value > > >>> isn't re-measured. This isn't any different than when a file is > > >>> modified and then reverted. > > >>> > > >>> Instead of changing the name like this, which doesn't work for files, > > >>> allowing duplicate measurements should be generic, based on policy. > > >> > > >> Perhaps it is just the end of the day and I'm a bit tired, but I just > > >> read all of the above and I have no idea what your current thoughts > > >> are regarding this patch. > > > > > > Other than appending the timestamp, which is a hack, the patch is fine. > > > Support for re-measuring an event can be upstreamed independently. > > > > > > > Thanks for clarifying the details related to duplicate measurement > > detection and re-measuring. > > > > I will keep the timestamp for the time being, even though its a hack, as > > it helps with re-measuring state changes in SELinux. We will add support > > for "policy driven" re-measurement as a subsequent patch series. > > Once including the timestamp is upstreamed, removing it will be > difficult, especially if different userspace applications are dependent > on it. Unless everyone is on board that removing the timestamp > wouldn't be considered a regression, it cannot be upstreamed. I'm not a fan of merging things which are known to be broken only with the promise of fixing it later. That goes double when the proper fix will result in a user visible breaking change. -- paul moore www.paul-moore.com