lkml.org 
[lkml]   [2010]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] proc: Add complete process group list
Date
> If a process is in more than NGROUPS_SMALL (32) groups, it's not possible
> for any other user space process to determine the list of groups it is
> in using /proc/<pid>/status.
>
> Increasing the list of groups listed by /proc/<pid>/status would lead to
> very long lines that file, and possible misbehavior of userspace programs
> that parse /proc/<pid>/status, so instead I have opted to create a new
> file /proc/<pid>/groups, which contains the list of supplementary groups
> for each pid.
>
> The new file /proc/<pid>/groups consists of a single group id per line,
> with each line being 11 characters long. This should be enough space
> for 16bit or 32bit group ids.
>
> This feature might be useful for a server listening on a unix domain pipe
> to determine the list of groups that a client process is in from its pid.
>
> Signed-off-by: Mike McCormack <mikem@ring3k.org>

Just dumb question.

Why don't you fix /proc/<pid>/status? Can we share your worry? I haven't review your patch
carefully yet. but your groups_proc_show() seems don't have heavy weight lock.

note: I'm not against your plan. it's just curiosity.




\
 
 \ /
  Last update: 2010-06-23 02:13    [W:0.089 / U:0.536 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site