mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Markku Savela <msa@moth.iki.fi>
To: linux-kernel@vger.kernel.org
Subject: in_group_p test for another process?
Date: Wed, 28 May 2008 16:02:16 +0300	[thread overview]
Message-ID: <200805281302.m4SD2GGw012289@burp.tkv.asdf.org> (raw)


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?


             reply	other threads:[~2008-05-28 13:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-28 13:02 Markku Savela [this message]
     [not found] <aytzW-rV-23@gated-at.bofh.it>
2008-06-04 11:18 ` Markku Savela

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200805281302.m4SD2GGw012289@burp.tkv.asdf.org \
    --to=msa@moth.iki.fi \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®