LWN: Comments on "Namespaces in operation, part 3: PID namespaces"
https://lwn.net/Articles/531419/
This is a special feed containing comments posted
to the individual LWN article titled "Namespaces in operation, part 3: PID namespaces".
en-usFri, 08 Nov 2024 18:05:42 +0000Fri, 08 Nov 2024 18:05:42 +0000https://www.rssboard.org/rss-specification[email protected]Namespaces in operation, part 3: PID namespaces
https://lwn.net/Articles/532923/
https://lwn.net/Articles/532923/ebiederm<div class="FormattedComment">
It depends on what you are doing. Unix domain sockets translate transmitted pids.<br>
Readlink on /proc/self reports your pid in the pid namespace of the proc mount.<br>
<p>
That should cover most day to day cases.<br>
<p>
Processes in pid namespaces can not escape so process nesting mirrors pid namespace nesting.<br>
<p>
With the pid namespace file descriptors you can find can with care mount proc for each of the pid namespaces.<br>
<p>
For a process with children you will need to look at something like start time to distinguish between them. A little tricky but it should be doable. Process with parents outside the pid namespace will report their parent pid as 0, so should be easy to find. Normally there will be only one.<br>
<p>
<p>
</div>
Thu, 17 Jan 2013 12:26:24 +0000Namespaces in operation, part 3: PID namespaces
https://lwn.net/Articles/532897/
https://lwn.net/Articles/532897/bjencks<div class="FormattedComment">
Is it possible to correlate PIDs from different namespaces to the same process? That is, can a process in a parent namespace inspect a process based on its PID in the parent namespace to determine its PID in each subordinate namespace down to the inspected process's own namespace?<br>
<p>
Also, is there any way to determine the namespace hierarchy? Inode numbers identify them, but don't specify their relationships.<br>
</div>
Thu, 17 Jan 2013 06:27:14 +0000Namespaces in operation, part 3: PID namespaces
https://lwn.net/Articles/532891/
https://lwn.net/Articles/532891/ebiederm<div class="FormattedComment">
Note except for the numbers not matching up mount of /proc from an outer pid namespace will still work for many things process as /proc/self still works.<br>
</div>
Thu, 17 Jan 2013 03:48:24 +0000