Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4045331rwl; Tue, 28 Mar 2023 01:35:45 -0700 (PDT) X-Google-Smtp-Source: AKy350Yd9IGZ3YtNdplt/eahjj+Brd5AP1vBXFaL4ibhk09029sE1F2t6epNrHMthmLrMmTC2LKn X-Received: by 2002:aa7:9433:0:b0:5a0:c4b6:edd6 with SMTP id y19-20020aa79433000000b005a0c4b6edd6mr14648673pfo.0.1679992545240; Tue, 28 Mar 2023 01:35:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679992545; cv=none; d=google.com; s=arc-20160816; b=ZP0+nWUWyhXTPnAPSt/wyvDkK7sNL8D8Giz4hAdjUXFLbi9w4KcXnZiZ+t5WmkoDi3 NPO3+Ykk0Vo/H700TwOpFhQt8poODB7xPj6PshK/naVUUcpHfyLrx93JOGmY2lDtCdvH aUA5E/wc3Ec0KHtGkAvFXF6eouG3QQ8XwxsNn6APc6ZLAZUTLJOVhs6PNwbSJShTR2KJ GHr/gGRraVZ8VmjIFY+cxCS8X8bF3+TMFA0zdqbfehyLTjOSbSOkUTEKjAEVyjAYnIxM aAjv7taaLhHz+/9n5z3vWIFbn6dqIf2JhSOxleM8vcKEIVdpjmpr6cU68tXvMI0FLahU LhYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Bhcy4BHc+zpZnCKREDOmYCS1m4N0839/12fecqip2Xc=; b=j8ar+cThPbJlEnVePgixN1tYtN27i+GezVU3+02lHAAlJpAVcKKFT87smm4kryeho+ l6mXWKAE/AZfjmqpbvK4XC+ncggN8RRLE/vnKz1HUjE5BgDIuyuA7RFjfnKGYAdwpkVc U9cI4pCDhRXbr/VzE2/7frw6yO3T6NuGmNlUTC1ZMiCX+amYlvLHUShetRU1jJ/IB32F yeZa96/oKQ2esu5fzzN19Bo7bRoZrOHa1YsfKSmIXzP9MOdlAQFZseTdoe8jkPrLlcyE X1oQD9Vmooau/OfWLMWCdoN/mjHEdZBA686sKV1EbOuzU36ewF7A3admfvoVZvjX8g/K P4MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UH0Bpsdj; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 126-20020a621884000000b0062a56f3a1cdsi10829203pfy.183.2023.03.28.01.35.25; Tue, 28 Mar 2023 01:35:45 -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=@kernel.org header.s=k20201202 header.b=UH0Bpsdj; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229501AbjC1IaO (ORCPT + 99 others); Tue, 28 Mar 2023 04:30:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232256AbjC1IaM (ORCPT ); Tue, 28 Mar 2023 04:30:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE9A03C34; Tue, 28 Mar 2023 01:30:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2788F6155E; Tue, 28 Mar 2023 08:30:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 934D6C433EF; Tue, 28 Mar 2023 08:30:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679992207; bh=57O8SXNkoQuVQhQlA6YOIdV+n7nmtB7ImkM0TollDxE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UH0Bpsdj7JJwhRJgS8Cizn5aCDGc3hjM1vT2wXHx2MtYLBADvs9H2TXvkp0QYcV8j jnVWh/MGBZQr8YKuIS0lqbasqkeI8FfVdgFAeGVPCRVFYfZhWXd9peNt0x6flQfTpD uvT/qMLOGo3yAIZk581lp8CImiMbvVHndk357O8OsuTr+l4PbBAgdPRtsiHYkEfomX aJ3vSvHaELl+PGSOmHlJhTGzKyNKleK0ve0gCWM42Ga8KSzgAY2WPr4yiHx7xcj5Ji /c01c0NEhe9N3M5LLEC/Gg1jXnLllIR6uA2Z6wqsB4zJDElJu+jIEVAWHtMbDvp9Y/ uewV1EiFcSC7w== Date: Tue, 28 Mar 2023 10:30:02 +0200 From: Christian Brauner To: Trond Myklebust , Anna Schumaker , Chuck Lever , Jeff Layton Cc: Christoph Hellwig , linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org Subject: Re: [PATCH v2] nfs: use vfs setgid helper Message-ID: <20230328083002.5yn5ggpqpe7caeuz@wittgenstein> References: <20230313-fs-nfs-setgid-v2-1-9a59f436cfc0@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230313-fs-nfs-setgid-v2-1-9a59f436cfc0@kernel.org> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 On Tue, Mar 14, 2023 at 12:51:10PM +0100, Christian Brauner wrote: > We've aligned setgid behavior over multiple kernel releases. The details > can be found in the following two merge messages: > cf619f891971 ("Merge tag 'fs.ovl.setgid.v6.2') > 426b4ca2d6a5 ("Merge tag 'fs.setgid.v6.0') > Consistent setgid stripping behavior is now encapsulated in the > setattr_should_drop_sgid() helper which is used by all filesystems that > strip setgid bits outside of vfs proper. Switch nfs to rely on this > helper as well. Without this patch the setgid stripping tests in > xfstests will fail. > > Signed-off-by: Christian Brauner (Microsoft) > --- > Changes in v2: > - Christoph Hellwig : > * Export setattr_should_sgid() so it actually can be used by filesystems > - Link to v1: https://lore.kernel.org/r/20230313-fs-nfs-setgid-v1-1-5b1fa599f186@kernel.org > --- If someone has a few cycles to give this a review it would be appreciated. I'm happy to carry this patch or the NFS tree can. I'm not fussed.