Thread (42 messages) 42 messages, 10 authors, 2018-11-29

Re: [PATCH v1 1/2] proc: get process file descriptor from /proc/<pid>

From: Andy Lutomirski <luto@kernel.org>
Date: 2018-11-20 01:56:42
Also in: linux-fsdevel, linux-man, lkml

On Mon, Nov 19, 2018 at 2:33 AM Christian Brauner [off-list ref] wrote:
With this patch an open() call on /proc/<pid> will give userspace a handle
to struct pid of the process associated with /proc/<pid>. This allows to
maintain a stable handle on a process.
I have been discussing various approaches extensively during technical
conferences this year culminating in a long argument with Eric at Linux
Plumbers. The general consensus was that having a handle on a process
should be something that is very simple and easy to maintain with the
option of being extensible via a more advanced api if the need arises. I
believe that this patch is the most simple, dumb, and therefore
maintainable solution.
How does the mechanism you're adding here differ from proc_pid()?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help