[haiku-bugs] [Haiku] #16607: Add ability to get parent PID of process

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Mon, 16 Nov 2020 11:57:17 -0000

#16607: Add ability to get parent PID of process
---------------------------+-----------------------------
 Reporter:  X512           |       Owner:  nobody
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Unscheduled
Component:  System/Kernel  |     Version:  R1/Development
 Keywords:                 |  Blocked By:
 Blocking:                 |    Platform:  All
---------------------------+-----------------------------
 This is hrev54703.

 `_user_process_info(process, PARENT_ID)` allows to get parent PID, but it
 has following check so only current process can get it's parent:
 [https://git.haiku-os.org/haiku/tree/src/system/kernel/team.cpp#n4002
 team.cpp:4002]. Check should be removed or applied only if user has no
 administrator privileges.

 This feature is required to implement process view in a tree.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16607>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: