Re: [1/1][PATCH] nproc v2: netlink access to /proc information

Stephen Smalley
2004-09-10T12:19:07Z

On Thu, 2004-09-09 at 16:48, Chris Wright wrote:
> > + * @task_getstate:
> > + * Check permission before getting the state of a task.
> > + * @pid contains the pid of the requesting process.
> > + * @p contains the task_struct for the target task.
> > + * @uid contains the uid of the requesting process.
> > + * @caps contains the capability set of the requesting process.
> > + * Return 0 if permission is granted.
>
> Why caps?

It is readily available in the netlink skb parms, and someone might want
to use it, e.g. a security module might limit a requesting process to
only getting state of other processes with the same uid unless the
requesting process has some capability.

--
Stephen Smalley <sds@epoch.ncsc.mil>
National Security Agency