Re: [PATCH] proc: allow killing processes via file descriptors (Larger pids)
From: Eric W. Biederman
Date: Mon Nov 19 2018 - 11:26:14 EST
Dmitry Safonov <0x7f454c46@xxxxxxxxx> writes:
>
> So, I just wanted to gently remind about procfs with netlink socket[1].
> It seems to me that whenever you receive() pid information, you
> can request some uniq 64(?) bit number and kill the process using it.
> Whenever uniqueness of 64-bit number to handle pids will be a question
> the netlink message might be painlessly extended to 128 or whatever.
No.
I have seen this requested twice in this thread now, and despite
understanding where everyone is coming from I do not believe it will
be wise to implement larger pids.
The problem is that we then have to make these larger pids live in
the pid namespace, make struct pid larger to hold them and update
CRIU to save and restore them.
All for a very small handful of processes that use this extended API.
Eric