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 ED248C43470 for ; Thu, 1 Apr 2021 06:55:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B5EA7610CA for ; Thu, 1 Apr 2021 06:55:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233685AbhDAGy7 (ORCPT ); Thu, 1 Apr 2021 02:54:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233518AbhDAGym (ORCPT ); Thu, 1 Apr 2021 02:54:42 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF31AC0613E6; Wed, 31 Mar 2021 23:54:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=+rqD+8Ns9XS4d9FAw5iGCGFF40fFVJKrKKANRCPHP0o=; b=ihNbaoxnPM7sRbYjVMAyci454u RLoWWyCxHieZwdASJXGveeL+T4zBSWzf1+/rwUOcY/aJkEdMhmLPzKYJogJKbMvKQum+SR2yQ/g5k zh/KnuRqAT9UMvH/lmH9yJ/i18lq27gw/4xHlH3FCu6NapT3MnKxBORA/9JYJGPsTWg5PmXieJrOa 8gzSbHWVb8M2wohf5s6cESHkuCdWtVUV+CHyayJ6pnJzo5w8xEf3ZdZJj1aTN4DjAVUVIXAKx3WsP a2l1uJKUJ6gYbIUSxcw9gEmBD35leKFqgwdpKY7TZBJiChqA3jgfkK7E+dTdj6jgp5f7dCcpvbREq X78grfig==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lRrDP-005jvt-25; Thu, 01 Apr 2021 06:54:12 +0000 Date: Thu, 1 Apr 2021 07:54:03 +0100 From: Christoph Hellwig To: Ondrej Mosnacek Cc: Al Viro , Paul Moore , linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, David Howells , Linux Security Module list , SElinux list , Stephen Smalley , Richard Haines Subject: Re: [PATCH v2] vfs: fix fsconfig(2) LSM mount option handling for btrfs Message-ID: <20210401065403.GA1363493@infradead.org> References: <20210316144823.2188946-1-omosnace@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: selinux@vger.kernel.org On Mon, Mar 29, 2021 at 11:00:39AM +0200, Ondrej Mosnacek wrote: > After taking a closer look, it seems this won't actually work... The > problem is that since btrfs still uses the legacy mount API, it has no > way to get to fs_context in btrfs_mount() and thus both of your > suggestions aren't really workable (again, without converting btrfs at > least partially to the new API)... .. and that conversion is long overdue anyway ..