4 ms·
You can spawn as many processes as you want in a container, did you not know that? But you only need access to the /proc/pid directory to change another proces
by withinboredom 3y ago
You can spawn as many processes as you want in a container, did you not know that?
But you only need access to the /proc/pid directory to change another processes env.
- eqvinox 3y ago> But you only need access to the /proc/pid directory to change another processes env. /proc/$pid/environ is not writable (and as a matter of fact, due to how the environment works, it cannot be writable.)
- LegionMammal978 3y agoBut /proc/pid/mem is, if you like living dangerously! You'd just have to parse the dynamic-linker metadata to find where libc's environ is hiding. (Though statically-linked programs would be tougher.)
- SAI_Peregrinus 3y agoSpawning a new process doesn't require changing the parent's environment.