Closed fengjian closed 3 years ago
osi_linux
finds the task name from the task struct comm
field. If the thread changed its name to reqwest-interna
there's not much we can do about that. That's the name of the task_struct
now.
You can write some logic around the osi
get_current_thread
idea to keep track of separate threads by TID while keeping the same PID associated.
You could also run through get_processes
and check if one matching your PID matches your name filter.
osi_linux
finds the task name from the task structcomm
field. If the thread changed its name toreqwest-interna
there's not much we can do about that. That's the name of thetask_struct
now.You can write some logic around the
osi
get_current_thread
idea to keep track of separate threads by TID while keeping the same PID associated.You could also run through
get_processes
and check if one matching your PID matches your name filter.
Thanks! I understand. it’s better to rename to get_task_name
target_bin = "selinux"