diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2013-08-16 00:05:12 +0200 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-03-20 15:11:54 +0100 |
commit | ad36d28293936b03d6b7996e9d6aadfd73c0eb08 (patch) | |
tree | 695d01a5792f57356ed7c1b759ff781dabda5c22 /kernel | |
parent | audit: rename the misleading audit_get_context() to audit_take_context() (diff) | |
download | linux-ad36d28293936b03d6b7996e9d6aadfd73c0eb08.tar.xz linux-ad36d28293936b03d6b7996e9d6aadfd73c0eb08.zip |
pid: get pid_t ppid of task in init_pid_ns
Added the functions task_ppid_nr_ns() and task_ppid_nr() to abstract the lookup
of the PPID (real_parent's pid_t) of a process, including rcu locking, in the
arbitrary and init_pid_ns.
This provides an alternative to sys_getppid(), which is relative to the child
process' pid namespace.
(informed by ebiederman's 6c621b7e)
Cc: stable@vger.kernel.org
Cc: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions