In a program I am developing (Linux), I need very simple text-based IPC. It would be very easy to use a standard input/output pipe for this. Can I trust that messages sent to a process’ stdin cannot be read by anyone? Also, can I trust that if I kept the pipe to its stdout, only I can read what it outputs? I just want to make sure there’s no procfs-based trick that can read from these.
Share
In my own limited testing (running
uniq | sortthen trying to snoop on both ends of the pipe via/proc/XXX/fd), it seems that I can’t read what gets sent into the pipe, but I can inject data into it.In other words, do your own testing to see what you can and can’t do. 🙂