Any third party code in our system can just read whatever's in the environment and POST it to some remote server.
Tight control of egress network traffic is better but more difficult to implement.
(I wish, it's April 1 after all!)
strings /proc/*/environ
to see for yourself.On Solaris/SunOS, you could use `pargs -e $PID`. And so on.
Having separate UIDs to run your processes A and B under shields either one from peeking at the other's environment, though. UNIX DAC is simple and powerful enough for MOST security concerns, I would argue.
This is completely false in any modern OS. You can only see environment variables of your own processes.