Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3853675iog; Tue, 28 Jun 2022 04:16:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tAFf7e0VXYj8wv+Y+tx3EyJcQFgjBQOnkREaoozxvms9EOJFoqT7PeSd+1mTsSJih1BAdy X-Received: by 2002:a17:902:b105:b0:16a:1a48:3382 with SMTP id q5-20020a170902b10500b0016a1a483382mr3125775plr.128.1656414999055; Tue, 28 Jun 2022 04:16:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656414999; cv=none; d=google.com; s=arc-20160816; b=a/JzpIncQNEWoczPlprRldcp4CDV4i07mRm1M8QEFcBMhUu6JW44+gfK0p39Z3lQQQ HR9UOTAMrhIeM80ad1zZ4HdMcyZnGdWQsh5/OPnirM1fuoVgH/yEiHTpmzkqYODD/6z7 CqbvDiS7OhowsR65ez4vIzsO6BNeUDv5VqcLYSsPzKzU1SXrFaZVoo7Xd8KDjwFGkl8n JMadtQuQE6WmPZaNiNFdaCOqZLPlKuNd+6NSLZpKI6Ar4TAZ+/PK3ccw5mUInh4KL+Dl xSHTzhkLmlOK4hegTxd47C639LC3p5Rh/R4Kq/1gbyBOlV8NOWP+tU48ku4+dtA2V7PO FPAA== 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=GkZWAIPtgXrP6VcEg0GvwrmufUw19qrrpebCrp04X3U=; b=GBM0cdZAbb1TfJg9ZYEv/cYVUOFidV7fE5uSquBcRwD1xsCEMx7gBzPC1VIPoXEiaT Rq8JF8VUuv/LhLTGdBK1uauvX8oyJFQ5C3cXpMKICLhmaBI/GHWMdGpu49jGvXjTrtXi 9Lj5EenVV5cpPFlOAi1V0CFJzWd8s9jkZpLZQttSq8edMV9asYWXIXV7cvslGN5cR4fZ O7nUhTaVerTdkV4cZA7LU5kEs0YgYp7aBoubiM6A6U9KAIjVuKqz+OhoeMUtaTHIM2OO ex9bFGx+SjYx0ZZ5I3o+l1TZdFSHJTRnVvdtxkbiZ/WTdHFivVMPWMGFAf0321b6MuSI Bg3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Sho2JGuo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 y18-20020aa78052000000b005251b3fc716si17016082pfm.95.2022.06.28.04.16.26; Tue, 28 Jun 2022 04:16:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=Sho2JGuo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S231223AbiF1KtF (ORCPT + 99 others); Tue, 28 Jun 2022 06:49:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344294AbiF1KtB (ORCPT ); Tue, 28 Jun 2022 06:49:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F05596542; Tue, 28 Jun 2022 03:48:59 -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 88ED861956; Tue, 28 Jun 2022 10:48:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 342C9C3411D; Tue, 28 Jun 2022 10:48:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656413338; bh=Ies8xD4MNzwqAy7s3L9C80SB0LLsY4MfQVpuud1nUR0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Sho2JGuocQWyYW/atWP2zOlT+kjh2jxM7WQuzYQUMtGSHOTamoQ+dW6bugHXOUxev 50ePWfdZS2DliAAFYeDLWHJT35b8XZDPGH/qNtS4C9D1DzIdaXI9erQ/mudwoqUF+z ORLvlEuVY9ZkATyeD/Bb1qdqdvcFxcY3fG7JnacnRqFEXHkXt9WYsZ5MtoOps6zcoX l+a9otQ4QYAMfoYsEg4NiJX4iOluhBpyRsw9vqk2nOqYGXmIClpxTrOMw0Rjk9k6rQ If3yJ/B3aCmnyS77roy3CFQgO1deO0UtkmaQ5Ocppp4tmjVhiY+r22V/Exvdrwa6bS b0kp7BCsvgBHw== Date: Tue, 28 Jun 2022 12:48:53 +0200 From: Christian Brauner To: Jan Kara Cc: Guowei Du , amir73il@gmail.com, repnop@google.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, duguowei Subject: Re: [PATCH 6/6] fanotify: add current_user_instances node Message-ID: <20220628104853.c3gcsvabqv2zzckd@wittgenstein> References: <20220628101413.10432-1-duguoweisz@gmail.com> <20220628104528.no4jarh2ihm5gxau@quack3> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220628104528.no4jarh2ihm5gxau@quack3> X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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-kernel@vger.kernel.org On Tue, Jun 28, 2022 at 12:45:28PM +0200, Jan Kara wrote: > On Tue 28-06-22 18:14:13, Guowei Du wrote: > > From: duguowei > > > > Add a node of sysctl, which is current_user_instances. > > It shows current initialized group counts of system. > > > > Signed-off-by: duguowei > > Hum, I'm not sure about a wider context here but the changelog is certainly > missing a motivation of this change - why do you need this counter? In > particular because we already do maintain (and limit) the number of > fanotify groups each user has allocated in a particular namespace... Yeah, that's pretty strange as there's /proc/sys/user/max_fanotify_groups /proc/sys/user/max_fanotify_marks it could be to have a ro counter that allows to display the current number of groups? But that seems strange as we don't expose that information anywhere for similar things. What would this be used for even?