public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* in_group_p test for another process?
@ 2008-05-28 13:02 Markku Savela
  0 siblings, 0 replies; 2+ messages in thread
From: Markku Savela @ 2008-05-28 13:02 UTC (permalink / raw)
  To: linux-kernel


If I have a PID and some GID at hand, how do I find whether the OHTER
process identified by PID has the GID in its supplementary set of
groups?

I can find the "in_group_p" test, but that does it only for current process.

Do I have to write my own function that uses the "tasklist_lock",
finds task by "find_task_by_pid", and then calls
"groups_search(task->group_info, gid)"?

Can I do this in a module, or do I have to patch the "kernel/sys.c"
myself for a privately modified version of the kernel?


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-04 11:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <aytzW-rV-23@gated-at.bofh.it>
2008-06-04 11:18 ` in_group_p test for another process? Markku Savela
2008-05-28 13:02 Markku Savela

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox