Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3971320rwe; Tue, 30 Aug 2022 02:07:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR5ExD6+kibJuNw77puz2yc2N3cx3BMjvza6tin+bxjXNx3nln2+wXI+AWvEOp/zAM8pLH1X X-Received: by 2002:a17:906:2bc7:b0:72f:dc70:a3c6 with SMTP id n7-20020a1709062bc700b0072fdc70a3c6mr16335849ejg.645.1661850429953; Tue, 30 Aug 2022 02:07:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661850429; cv=none; d=google.com; s=arc-20160816; b=tJqm/3bXAgeKULdQ0xyu1Bh6KMmO5eihk4d5mbzCIFaSb2dWzqe1qwzKeNR9GNMVjQ KnAR6eihHUd4+n8SddpcS9O18u8GYqd9i2I6Eir9vKJhDlNEIEi7lUZlEp1b6hUslyvg zj7I/cZCP12qUesOLqmvoxtdnLG+/0W924s5xFKPNnTBk4PA28z2jqRo4U9YuI4fjvq8 ToTvM7wG1r7e87HcSGggPfrOqYquSV36LQTSvzAt3eZL1Nma1Fmy37Zfmz7mNYhNczgG S9YGG5m61GCb69nU4UyFC1LNGY3Rw0n8VPyzhg/I9Cjgj9heiIU/4KFX0FQZ3vM5XmuQ wBlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:references:in-reply-to:from:organization:dkim-signature; bh=rO4FZd8DM43FaK8mkRxXV5H/hvjL5yUM5ZIt/9HgsK0=; b=SlxcpCZsZQKOOfiIsI0xYaCEnyBbCxVMAOWn4LhWvkZtVgk+lUUrjajtt4181ILQ2A isUOrAsgQLV8dW7UIfRAN+4C2Cfr8SOlU7CrA2Nt942P4IaUmYxP5o48hbBn+klwPs5r ExgmR1VZXQKtyarmE27MxpGNvErJN/JNhlu1kJhTjSNLs7Cl1VWzjMLRlcpB94U0+vzo nTbG9iS5khciiAVvq6sK11cLPvpkB0laq6YYPTsL7ekk81ELEFtucPAsm3CbZqttIHzq wUfqhWh09hEejQaHzYsGUSXm/uNjAzH24It1iJwFZx2CaW0H8br9tliYldPbM9IltHxp UpfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="WnrD/o1i"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xd1-20020a170907078100b0073054c63245si9208861ejb.453.2022.08.30.02.06.38; Tue, 30 Aug 2022 02:07:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="WnrD/o1i"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231673AbiH3ItP (ORCPT + 99 others); Tue, 30 Aug 2022 04:49:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231652AbiH3ItO (ORCPT ); Tue, 30 Aug 2022 04:49:14 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81C1EBA9D9 for ; Tue, 30 Aug 2022 01:49:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661849352; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rO4FZd8DM43FaK8mkRxXV5H/hvjL5yUM5ZIt/9HgsK0=; b=WnrD/o1imgMkc2+8FAdRVvloi3pKO4IeJSuAJdfos2Qzu57XKlwjPZHlljIb7H+dyd6ua9 C1cN9IQLRoMBVwDYddMKzt/8OLrDFMeO41J15LyydfSHgE3Bf/2jVbWgNDVW+ZgXH/6JP9 tY/joutocg5fOlTQuF4+E7VgyH6iBtA= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-455-VRXojYk8POGrzp5byeD5Jg-1; Tue, 30 Aug 2022 04:49:08 -0400 X-MC-Unique: VRXojYk8POGrzp5byeD5Jg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C0F06380390A; Tue, 30 Aug 2022 08:49:07 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.72]) by smtp.corp.redhat.com (Postfix) with ESMTP id D748FC15BB3; Tue, 30 Aug 2022 08:49:05 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <166133579016.3678898.6283195019480567275.stgit@warthog.procyon.org.uk> <20220826082439.wdestxwkeccsyqtp@wittgenstein> To: Casey Schaufler Cc: dhowells@redhat.com, Christian Brauner , viro@zeniv.linux.org.uk, Jeff Layton , Trond Myklebust , Anna Schumaker , Scott Mayhew , Paul Moore , linux-nfs@vger.kernel.org, selinux@vger.kernel.org, linux-security-module@vger.kernel.org, linux-fsdevel@vger.kernel.org, dwysocha@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] vfs, security: Fix automount superblock LSM init problem, preventing NFS sb sharing MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1903708.1661849345.1@warthog.procyon.org.uk> Date: Tue, 30 Aug 2022 09:49:05 +0100 Message-ID: <1903709.1661849345@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Casey Schaufler wrote: > The authors of this version of the mount code failed to look > especially closely at how Smack maintains label names. Once a > label name is used in the kernel it is kept on a list forever. > All the copies of smk_known here and in the rest of the mount > infrastructure are unnecessary and wasteful. The entire set of > Smack hooks that deal with mounting need to be reworked to remove > that waste. It's on my list of Smack cleanups, but I'd be happy > if someone else wanted a go at it. I don't have time to overhaul Smack right now. Should I drop the Smack part of the patch? David