[OpenAFS] inspect pid-to-pag mapping? pag-to-tokens-mapping?

Russ Allbery rra@stanford.edu
Sat, 24 Mar 2007 12:41:46 -0700


Adam Megacz <megacz@cs.berkeley.edu> writes:

> Is it possible to find out what PAG a given PID belongs to (on linux,
> with local root)?

grep Groups /proc/<pid>/status

if the PAG group still exists.  There's probably some flag to ps that
gives you this information too.  Otherwise, you have to use the
command-line keyring utilities.

> Given a PAG, is it possible for a (root) process to find out what
> tokens that PAG holds without being part of the PAG?

There isn't in the traditional interface so far as I know.  Keyrings may
offer a way.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>