Re: [PATCH 6/6] fanotify: add current_user_instances node
From: Christian Brauner
Date: Tue Jun 28 2022 - 06:49:07 EST
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 <duguowei@xxxxxxxxxx>
> >
> > Add a node of sysctl, which is current_user_instances.
> > It shows current initialized group counts of system.
> >
> > Signed-off-by: duguowei <duguowei@xxxxxxxxxx>
>
> 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?