You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you are aware, Linux PID namespaces provide isolation of processes. Attached is the screenshot of list of processes running under a namespace and list of namespaces.
As shown in screenshot, there are 3 pid namespaces displaying its first pid and no of processes in current namespace.
I could figure out the namespace id of the any of the task running under a namespace from bpf_get_current_task() and subsequantly using BPF_CORE_READ APIs. I have referred the PR:#3647 for this. This was helpful. I want to figure out if there is mechanism to identify the first process(pid) of a given namespace using bpf APIs for any of the task.
Eg: For pidnsid of 4026532275, it should return 120.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi
As you are aware, Linux PID namespaces provide isolation of processes. Attached is the screenshot of list of processes running under a namespace and list of namespaces.
As shown in screenshot, there are 3 pid namespaces displaying its first pid and no of processes in current namespace.
I could figure out the namespace id of the any of the task running under a namespace from bpf_get_current_task() and subsequantly using BPF_CORE_READ APIs. I have referred the PR:#3647 for this. This was helpful. I want to figure out if there is mechanism to identify the first process(pid) of a given namespace using bpf APIs for any of the task.
Eg: For pidnsid of 4026532275, it should return 120.
Kindly assist.
Beta Was this translation helpful? Give feedback.
All reactions