From: Richard Guy Briggs Date: Thu, 15 Aug 2013 22:05:12 +0000 (-0400) Subject: pid: get pid_t ppid of task in init_pid_ns X-Git-Tag: v3.2.58~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ce844aea64b8bff202676fd87f2932b3eb35b83;p=pandora-kernel.git 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 Signed-off-by: Richard Guy Briggs Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed