3 ms·
> 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
by 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.)