• Richard Guy Briggs's avatar
    pid: get pid_t ppid of task in init_pid_ns · ad36d282
    Richard Guy Briggs authored
    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: default avatarRichard Guy Briggs <rgb@redhat.com>
    ad36d282
sched.h 78.8 KB