Is linux forkececececurity

I read this article

It says that the plug creates a copy of itself, and the forkperson also says that

. The entire virtual address space of the parent is replicated to the child

Does this mean that the child process can read the entire state of my process memory?

Can a child process unload the entire parent state, and it can be analyzed to extract the parent variable and its value.

But the article also says that the two processes cannot prepare each other. So am I confused?

+4
source share
2 answers

, ( ) (2). execve (2), , "" ( ). , execve mmap (2) (. in shm_overview (7)...) process ( ​​ ).

( MMU ) lazy copy on write, , fork .

proc (5), :

cat /proc/self/maps
cat /proc/$$/maps
sudo cat /proc/1/maps

,

wikipage fork, Linux .

, (, , ,...), .

, , , , . , execve ( ), , ELF, exec -ed.

Unix "" "". Unix POSIX (fork) (execve). spawn, . posix_spawn fork execve ( (3) popen (3), waitpid (2) /bin/sh....).

Unix ( fork execve) , fork execve (, ,...). , , , .

, a fork execve. MPI , . , - , , . vfork, . ; fork clone (2), (. futex (7)...), POSIX pthreads. fork .

( C) fork execve. . perror (3)

PS. syscall fork , multiverse. "" !

+4

fork(), (.. , ..).

, , , , .

, forking, , - , .

+2

All Articles