Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751459AbeAPLJe (ORCPT + 1 other); Tue, 16 Jan 2018 06:09:34 -0500 Received: from mail-yw0-f193.google.com ([209.85.161.193]:41445 "EHLO mail-yw0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751118AbeAPLJd (ORCPT ); Tue, 16 Jan 2018 06:09:33 -0500 X-Google-Smtp-Source: ACJfBov/8bjYQ7hZMHmKMlFqL8KXq8MAX/3JsXBFYDUsahimHLEJtpUI1O+STJQcmde7HgYIzDJR1+GJjMtzCFSb+9g= MIME-Version: 1.0 In-Reply-To: References: From: Dongsu Park Date: Tue, 16 Jan 2018 12:09:31 +0100 Message-ID: Subject: Re: [PATCH 0/2] turn on force option for FUSE in builtin policies To: LKML Cc: Alban Crequy , Miklos Szeredi , Mimi Zohar , Seth Forshee , Dongsu Park Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Hi, On Thu, Jan 11, 2018 at 8:51 PM, Dongsu Park wrote: > In case of FUSE filesystem, cached integrity results in IMA could be > reused, when the userspace FUSE process has changed the > underlying files. To be able to avoid such cases, we need to turn on > the force option in builtin policies, for actions of measure and > appraise. Then integrity values become re-measured and re-appraised. > In that way, cached integrity results won't be used. Since yesterday Alban and I have been working on a different approach that does not depend on IMA rules, nor fsmagic. Please see: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1587390.html If that's ok, I'm ready to discard this patchset. Thanks, Dongsu > This patchset depends on the patch "ima: define a new policy option > named force" by Mimi. [1] For details on testing the force option, > please refer to the testing report by Alban. [2] > > The first patch is for simply moving FUSE_*SUPER_MAGIC macros to > include/uapi/linux, to be able to use those in other subsystems like > security/integrity/ima. > > The second patch is actually to turn on the force option for FUSE fs > in IMA. > > [1] https://www.spinics.net/lists/linux-integrity/msg00948.html > [2] https://marc.info/?l=linux-integrity&m=151559360514676&w=2 > > > Dongsu Park (2): > fs/fuse: move SUPER_MAGIC definitions to linux/magic.h > ima: turn on force option for FUSE in builtin policies > > fs/fuse/control.c | 3 +-- > fs/fuse/inode.c | 3 +-- > include/uapi/linux/magic.h | 3 +++ > security/integrity/ima/ima_policy.c | 2 ++ > 4 files changed, 7 insertions(+), 4 deletions(-) > > -- > 2.13.6 >