diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2013-08-15 18:05:12 -0400 |
---|---|---|
committer | Show Liu <show.liu@linaro.org> | 2014-06-18 12:03:35 +0800 |
commit | c6e4aa020120309f4612629fe68b5ba341057d10 (patch) | |
tree | f3a748b7bda5ca94231a3e66e0425c649d027039 /kernel | |
parent | c1328a6fdf3c6a4c24a80e96a98191d055182d91 (diff) |
pid: get pid_t ppid of task in init_pid_ns
commit ad36d28293936b03d6b7996e9d6aadfd73c0eb08 upstream.
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: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions