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=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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 8A38FC56202 for ; Tue, 17 Nov 2020 23:30:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 29AB6241A7 for ; Tue, 17 Nov 2020 23:30:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="HeuQ3NoS" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727305AbgKQXaT (ORCPT ); Tue, 17 Nov 2020 18:30:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727059AbgKQXaT (ORCPT ); Tue, 17 Nov 2020 18:30:19 -0500 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A0F3C0617A7 for ; Tue, 17 Nov 2020 15:30:17 -0800 (PST) Received: by mail-lj1-x244.google.com with SMTP id i17so279366ljd.3 for ; Tue, 17 Nov 2020 15:30:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Em64QPCkGCLXZWoLObSIBhUC3x5oAVxDwnh90HcLMak=; b=HeuQ3NoSPHMV5vKQqErsUpbPU0jCzVO1YYw049IBFq1aeufNNpzqJb5qaTS2ZHfFe+ WcUWdn6RMYtlbpqWvhE+FKQgR+SjxTvXaBlD3AxqZuA+NUcWqZcWsAHAfKnyuWsrg+Kw I+44mfRUd+9oWmJWHMV2sPLHW/pUwKHciZkoM= 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=Em64QPCkGCLXZWoLObSIBhUC3x5oAVxDwnh90HcLMak=; b=Hz/eJCs2eDGCTH1nLQXhkV//b+ID++NXhcMAuJp2wc4Pt06E/bUT31SvATvORwtcBx vZ/NnYCavuGsY8Qu5lOl4yq0p59TkHKYY4tLYtxDROr+BS0dvV5dKiowaZRngi504Qt7 iQqxyCKHQ87aDRdcusEW/jdGXqei9RZdRediJAiEntQVebs5QgUqPGhToD3g0yBLRMts y1LTIKiOT3EXhN2MZuQloKtuRpLkksJpbtiZaomOz1tv276mRzTqod7T4WdU5eqAJB6R QLzlC8pd4d3Egq2YfXH9Oi2/PaGRZCXg4C1NhNSkEO99YELf/aNOBozhEf2ZK9YZVwMu BTlg== X-Gm-Message-State: AOAM532N7aRC6CdYipNh6DTJaQdhbP6B+d7clWyYYq1R+oUtbyMbVdQj ecoc73bKunu8lMNysCHcxY1GEH+NhdC/xA== X-Google-Smtp-Source: ABdhPJzQZ0dQzzIJeVlU6prhz3iKnXhxU7M23vLtK9uGSf89+nM+FcxZdRox8C+I7P/LHs6TW9OFQg== X-Received: by 2002:a2e:9dcd:: with SMTP id x13mr2680548ljj.329.1605655815483; Tue, 17 Nov 2020 15:30:15 -0800 (PST) Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com. [209.85.208.170]) by smtp.gmail.com with ESMTPSA id l26sm697335ljb.92.2020.11.17.15.30.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Nov 2020 15:30:11 -0800 (PST) Received: by mail-lj1-f170.google.com with SMTP id y16so297114ljh.0 for ; Tue, 17 Nov 2020 15:30:11 -0800 (PST) X-Received: by 2002:a2e:8701:: with SMTP id m1mr2679618lji.314.1605655810863; Tue, 17 Nov 2020 15:30:10 -0800 (PST) MIME-Version: 1.0 References: <20201113080132.16591-1-roberto.sassu@huawei.com> <20201114111057.GA16415@infradead.org> <0fd0fb3360194d909ba48f13220f9302@huawei.com> <20201116162202.GA15010@infradead.org> <20201116174127.GA4578@infradead.org> <3f8cc7c9462353ac2eef58e39beee079bdd9c7b4.camel@linux.ibm.com> <5d8fa26d376999f703aac9103166a572fc0df437.camel@linux.ibm.com> In-Reply-To: <5d8fa26d376999f703aac9103166a572fc0df437.camel@linux.ibm.com> From: Linus Torvalds Date: Tue, 17 Nov 2020 15:29:55 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RESEND][PATCH] ima: Set and clear FMODE_CAN_READ in ima_calc_file_hash() To: Mimi Zohar Cc: Christoph Hellwig , Roberto Sassu , "linux-integrity@vger.kernel.org" , "linux-security-module@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Silviu Vlasceanu , "stable@vger.kernel.org" , "viro@zeniv.linux.org.uk" , "linux-fsdevel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 17, 2020 at 3:24 PM Mimi Zohar wrote: > > I really wish it wasn't needed. Seriously, I get the feeling that IMA is completely mis-designed, and is doing actively bad things. Who uses this "feature", and who cares? Because I would suggest you just change the policy and be done with it. Linus