netns icon indicating copy to clipboard operation
netns copied to clipboard

New functions GetFrom{Pid,Thread}WithAltProcfs

Open alban opened this issue 2 years ago • 0 comments

Existing functions GetFrom{Pid,Thread}() need the pid/tid argument to be numbered as per the pid namespace of the /proc mount.

In some container configurations, this is not suitable: a container with unshared pid namespace and the host's /proc mounted in /host/proc needs to lookup pids numbered as per the host pid namespace in /host/proc.

GetFrom{Pid,Thread}WithAltProcfs() provide a way for such container setups to use an alternative /proc path.

alban avatar May 24 '23 18:05 alban