Received: by 10.223.176.5 with SMTP id f5csp236277wra; Tue, 30 Jan 2018 10:39:44 -0800 (PST) X-Google-Smtp-Source: AH8x227Al80LH3dslFJ5BbxrPv34p1rL6eLlYENb4c4B+fQQ6Bp3VILcYMmyEVsffOuUMMjx5Hlz X-Received: by 2002:a17:902:4:: with SMTP id 4-v6mr25796415pla.187.1517337584353; Tue, 30 Jan 2018 10:39:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517337584; cv=none; d=google.com; s=arc-20160816; b=X62y9NfEOkESqPAV5E8vMZkExuVHLALpbgqNOg4VIZLByH/JHVzl7lWsVFrMThjJJR N+O6NvaHO1xA46bscQ24hN3sQLP4IT6gLTEQnx8BE192v+h+33Hi1Piu2pEHTcciSyu2 NDj1BUA+Af2/Nk/162O7aJ+sJidEZIMcOJnWVwBuGYzdAdz7/puAs/cROvNNj0HiLVWS FildI0H2GXywEEe9/V849I5Y9AMrA64KNYQvkPRWUzta+3Oz5GfQomwcdzu5dTMCLIqW RXGA16fpJ6zgAls+iSgemHVjYIyEiXyxWXHaA4FJFIcwJabLeJ8wjE9hl9LMhXxdD6Sl 2/Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=f71/6V9Iy40WsDBubri2+yrpRCG1/7g9UrGgSR7yJvg=; b=gVxc5QyBHCxG0rm0cEKrYTTe0hcJEcZpfE7K1WWd85gAaf7KNT0s6HHLSf8yBArtaL E/dzgCayRax1AJns8/59JuDS8hIr0fYz6fwmyxPGOB758P3onW2PxQ4SkdEWgF+SMZE9 IJZ6k/Xt57/IBFpNTBXqm/gehXW6O3AWjAZRdiY5QsTq80bakcsXtpZtK0JtADhGWSp6 ikKh5izSWT/1eN13nKNbg7BjxjH0m3EJGuG6uxwLQ3meK7X+/0ivOMHK4UlmIt04ekdw F2qJV94us+TRBGMu7SjYUwvZkgSkIi3BKf8fy/REuDPS1l0JYxzpv9mQSFdn4wRZQjV/ nYOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kinvolk.io header.s=google header.b=jNEFbUDF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o8si1940023pgv.113.2018.01.30.10.39.29; Tue, 30 Jan 2018 10:39:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kinvolk.io header.s=google header.b=jNEFbUDF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753507AbeA3SNI (ORCPT + 99 others); Tue, 30 Jan 2018 13:13:08 -0500 Received: from mail-yw0-f169.google.com ([209.85.161.169]:43623 "EHLO mail-yw0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753240AbeA3SNG (ORCPT ); Tue, 30 Jan 2018 13:13:06 -0500 Received: by mail-yw0-f169.google.com with SMTP id x190so5435928ywd.10 for ; Tue, 30 Jan 2018 10:13:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kinvolk.io; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=f71/6V9Iy40WsDBubri2+yrpRCG1/7g9UrGgSR7yJvg=; b=jNEFbUDFS68uy0TjqhnaF1RMHNZzdATNu5iYoJ486jCtIk0qVqtRx1aAxUaJ/CxS7s RyfH8RyqohFF7MkmIPyIWxeTRVLpT5pau2znm3H+nN+8gZK1UfEku8p6I5WKcXiOTNc5 VoePG7DS0iU3UQkWN6ccTMcmtACSvt3pxngSQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=f71/6V9Iy40WsDBubri2+yrpRCG1/7g9UrGgSR7yJvg=; b=bETRlyR17xiG43OQlD3zQEVO6YfqirZrYiO5o5wU10kHbndYjQnWYwPxtflsEaUL44 BnHB3o30+xccuizL3YZOGOleS9L3+uheVhTQYpUpWAw9Zxcp3OUu5NmFgCOupXqxUesP bjudvo9tPCo9JsXMLejxdxazF6vVePdzh8w3/gkS4MpcENe0W47pOzwqvgho4M6sr9nT 1JYKbKUtNe5eWEX6Dug1CnhIG5zQCqYKshe39Vo8CzSrqKlUb+/NJBNccxQUyH69B6Bt Ke+SZY81t/QMDUxkWL+9PF3xGq7LEOGKJj/+lhCe8r0Qc3DKDEwvY31FRbR/l9PP6Zkb LNrA== X-Gm-Message-State: AKwxytcGcokSbZ695zYOfZC5y4iKOQMA1k5wzGmBIdCkTkRgNwSEZ+Mc Ole5t8Jbgkuy/fFvtHwtTzAXf7xeIJQAerfot1B41g== X-Received: by 10.129.62.11 with SMTP id l11mr19856733ywa.244.1517335985818; Tue, 30 Jan 2018 10:13:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.185.144 with HTTP; Tue, 30 Jan 2018 10:13:05 -0800 (PST) In-Reply-To: References: <20180122162452.8756-1-alban@kinvolk.io> <20180122162452.8756-3-alban@kinvolk.io> <20180124175234.GA29811@mail.hallyn.com> <1516881401.3751.37.camel@linux.vnet.ibm.com> <1517243585.29187.546.camel@linux.vnet.ibm.com> From: Dongsu Park Date: Tue, 30 Jan 2018 19:13:05 +0100 Message-ID: Subject: Re: [RFC PATCH v3 2/2] ima: force re-appraisal on filesystems with FS_IMA_NO_CACHE To: Mimi Zohar Cc: "Serge E. Hallyn" , Alban Crequy , Alban Crequy , =?UTF-8?Q?Iago_L=C3=B3pez_Galeiras?= , LKML , linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-fsdevel@vger.kernel.org, Miklos Szeredi , Alexander Viro , Dmitry Kasatkin , James Morris , Seth Forshee , Christoph Hellwig Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Jan 29, 2018 at 6:40 PM, Dongsu Park wrote: > On Mon, Jan 29, 2018 at 5:33 PM, Mimi Zohar wrote: >> On Thu, 2018-01-25 at 06:56 -0500, Mimi Zohar wrote: ... >> Did you get a chance to make the change and test it? > > Alban has been on holidays, so he will be back on Wednesday or so. > So I'll try to understand what you meant in the last email. > > As IMA_DONE_MASK contains all other bitmasks, it's possible to > optimize the code like this: > > if (test_and_clear_bit(IMA_CHANGE_XATTR, &iint->atomic_flags)) { > iint->flags &= ~IMA_DONE_MASK; > } else if (inode->i_sb->s_type->fs_flags & FS_IMA_NO_CACHE) { > iint->flags &= ~IMA_DONE_MASK; > if (action & IMA_MEASURE) > iint->measured_pcrs = 0; > } > > Is that what you want to see? Please let me know if it's not. > Tomorrow I will try to test with a new patch. Today I created a new patch, and tested it. It worked fine. So I've just sent a new patchset v4. Please see: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1598387.html Thanks, Dongsu > Thanks, > Dongsu > >> Mimi >>