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=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 57D54C49ED7 for ; Thu, 19 Sep 2019 06:48:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1DFE321848 for ; Thu, 19 Sep 2019 06:48:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kDZtUPSu" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387901AbfISGsG (ORCPT ); Thu, 19 Sep 2019 02:48:06 -0400 Received: from mail-lj1-f169.google.com ([209.85.208.169]:44276 "EHLO mail-lj1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387758AbfISGsG (ORCPT ); Thu, 19 Sep 2019 02:48:06 -0400 Received: by mail-lj1-f169.google.com with SMTP id m13so2341917ljj.11 for ; Wed, 18 Sep 2019 23:48:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GQ74i7jMfFV1EW/qaEkp9OdMKSet+fmNgopOKpWlDMA=; b=kDZtUPSul7z6BJvVGvl7iL10tYZ1X9Wy9r9WrZRvI0otdnu6qMNwGdFDvMjN3oPHIN mBWNWver+58TGVuKZOVcZb4oKaWKIpEii8etZU7vLWN1HUlUetSbEJ0bOATnpwb+cljn 8jxJq71NU85+9Jx2b1Xk/FTy1WIajxZ8MDfXFXMY2ci1eV9fpuvFz9yI0bs8yuLya+Nk 0fxQDqydhtMczGEVE5FDF8w/LVm4dlv8EpeWkgK1WmvIRp4uHa1ZmqTSuH2Oe8eIScQA MnV7O0u/NzvXD50gq7p5neB1FaWseY+IOI0Vupv2I5D04wQf/Zsv8l6DuY4qXtrrJ+Q0 Gp+Q== 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=GQ74i7jMfFV1EW/qaEkp9OdMKSet+fmNgopOKpWlDMA=; b=p4BjYzJbTnSEGkL5t+r9gEiULiHragAOl0h3dwMN43xa+9D138UeWOgZuGOBJfNdrB WM/PnIY9ZwPSGAeCbg0W+tFDxehqiQs876Yidbq24ObghO5HPAVr0HiNXpEq43Gy+YfE SgI50DeTanyQIhKUvXHOxvegykZOyHqqzMFRjgRab3moP9Hcx0bgPtqTzH+H9AhrIxV4 jvOT2WgPVZ7NqaWNtuCS8kk1zG0muSjKjvuDuub7lUupiyoedyfLx2TNlkmvoYYVdbIy ImqLEGDx2tR5YOA/qE+y0/W2+ESuVWiIkWKSCFd/NCUGvFRzpn3z+tOykXmNfGIKYRGb lqgg== X-Gm-Message-State: APjAAAWlJOb6I4hf4pAhSnC6FcRn2rdHlbGVZaUBfpAVbtVob/wcpBe6 AxiJUyZ9cDOieP3JL56bMeQ8BXCZJ49LcVU8Gg8= X-Google-Smtp-Source: APXvYqxE3GulFVU8kBs6ObsttFIbC54A0ZdRsL7P8q4MMJCvHHFksKFOIZ++6kqBU/bevyB+6mq8th1/z/BIZAgaUcI= X-Received: by 2002:a2e:b0c2:: with SMTP id g2mr4281955ljl.217.1568875684339; Wed, 18 Sep 2019 23:48:04 -0700 (PDT) MIME-Version: 1.0 References: <1BF68F78-FA8E-4633-9AB4-AB6E0B10DCB8@oracle.com> <20190917124533.GD6762@mit.edu> <1568732169.11799.18.camel@HansenPartnership.com> <1568821962.5817.17.camel@HansenPartnership.com> In-Reply-To: <1568821962.5817.17.camel@HansenPartnership.com> From: Janne Karhunen Date: Thu, 19 Sep 2019 09:47:52 +0300 Message-ID: Subject: Re: IMA on remote file systems To: James Bottomley Cc: "Theodore Y. Ts'o" , Chuck Lever , linux-integrity@vger.kernel.org, Mimi Zohar Content-Type: text/plain; charset="UTF-8" Sender: linux-integrity-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org On Wed, Sep 18, 2019 at 6:53 PM James Bottomley wrote: > Mutability for integrity checked executables/data is problematic. With > IMA you have to update the file and the xattr and make sure nothing > touches it before you've completed all the updates otherwise you get an > integrity check failure. This can work if your mutation is simply a > distro update, but it's really hard to do if the file is constantly > undergoing mutation because the window where the integrity check fails > is huge ... thus it depends on your use case for mutability. Right, but try those patches I posted. They mostly address this, even android mmap'd databases seem to stay pretty well up to date and the performance is not entirely destroyed either if tuned a bit. -- Janne