05-01-07 06:19 AM
pacman@TheWorld.com (Alan Curry) writes:
> In article <1I2dndIW1brgM6vbnZ2dnUVZ_h-vnZ2d@giganews.com>,
> David T. Ashley <dta@e3ft.com> wrote:
>
> No. Separate uids are the only real security barrier. When you inspect the
> memory of a process with the same uid, that's not called eavesdropping; it
's
> called debugging.
In addition to inspecting memory, many UNIX OSes provide a way to
inspect system call parameters via "truss" or "strace" utility,
and finding out what is being written to, or read from, pipe takes
no effort at all:
$ strace -s1024 -e trace=write /bin/echo "Super secret message written to pi
pe" |
cat > /dev/null
write(1, "Super secret message written to pipe\n", 37) = 37
$ /bin/echo "Super secret message written to pipe" |
strace -s1024 -e trace=read cat > /dev/null
read(3, "\177ELF\1\1\1\0\0\0\0\0\0...) = 512 # loader reads
ELF header
read(0, "Super secret message written to pipe\n", 4096) = 37 # program read
s the message
read(0, "", 4096) = 0 # program gets
EOF
If you want to hide this data, encrypt it with some stream cipher.
Parent can generate a random "session" key, which children will
inherit across fork.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
[ Post a follow-up to this message ]
|