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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F234CC07E9D for ; Tue, 27 Sep 2022 07:35:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230264AbiI0HfA (ORCPT ); Tue, 27 Sep 2022 03:35:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229701AbiI0He7 (ORCPT ); Tue, 27 Sep 2022 03:34:59 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E44A612602; Tue, 27 Sep 2022 00:34:58 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id DD1C468AA6; Tue, 27 Sep 2022 09:34:54 +0200 (CEST) Date: Tue, 27 Sep 2022 09:34:54 +0200 From: Christoph Hellwig To: Paul Moore Cc: Christian Brauner , Christoph Hellwig , linux-fsdevel@vger.kernel.org, Seth Forshee , Al Viro , linux-integrity@vger.kernel.org, Stephen Smalley , Eric Paris , selinux@vger.kernel.org Subject: Re: [PATCH 10/29] selinux: implement set acl hook Message-ID: <20220927073454.GA17224@lst.de> References: <20220922151728.1557914-1-brauner@kernel.org> <20220922151728.1557914-11-brauner@kernel.org> <20220923064707.GD16489@lst.de> <20220923075752.nmloqf2aj5yhoe34@wittgenstein> <20220923143540.howryhuygxi2hsj3@wittgenstein> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org On Fri, Sep 23, 2022 at 01:35:08PM -0400, Paul Moore wrote: > If a dentry is truly needed by EVM (a quick look indicates that it may > just be for the VFS getxattr API, but I haven't traced the full code > path), then I'm having a hard time reconciling that this isn't a > dentry operation. Yes, I get that the ACLs belong to the inode and > not the dentry, but then why do we need the dentry? It seems like the > interfaces are broken slightly, or at least a little odd ... The dentry_operations are bit misnamed and should probably have been called dcache_operations, that is they are all about managing the dcache state and closely related operations. ACLs aren't like that.