Opened 4 years ago

Closed 4 years ago

#16607 closed enhancement (fixed)

Add ability to get parent PID of process

Reported by: X512 Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: System/Kernel Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

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: 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.

Change History (4)

comment:1 by waddlesplash, 4 years ago

Probably the check can be changed to check if EUID is either the same as the target process' EUID, or the current EUID is 0 (root).

comment:2 by X512, 4 years ago

I published my process view utility with process tree: SystemManager, screenshot. Kernel changes are not yet published.

comment:3 by X512, 4 years ago

Fixed in hrev54793.

comment:4 by waddlesplash, 4 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.