* mmap a /proc/<pid>/mem file?
@ 2010-01-25 20:42 Dimitry Golubovsky
2010-01-25 21:02 ` Andreas Schwab
0 siblings, 1 reply; 2+ messages in thread
From: Dimitry Golubovsky @ 2010-01-25 20:42 UTC (permalink / raw)
To: linux-kernel
Hi,
Say I have a parent and a child processes. Can the parent process
access the child process memory using mmap() over /proc/<pid>/mem file
where <pid> is child's pid?
Google search returns that at some time in the past this was not
supported. Is it supported now?
Thanks
--
Dimitry Golubovsky
Anywhere on the Web
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: mmap a /proc/<pid>/mem file?
2010-01-25 20:42 mmap a /proc/<pid>/mem file? Dimitry Golubovsky
@ 2010-01-25 21:02 ` Andreas Schwab
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2010-01-25 21:02 UTC (permalink / raw)
To: Dimitry Golubovsky; +Cc: linux-kernel
Dimitry Golubovsky <golubovsky@gmail.com> writes:
> Say I have a parent and a child processes. Can the parent process
> access the child process memory using mmap() over /proc/<pid>/mem file
> where <pid> is child's pid?
Only if the parent is the tracer of the child.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-25 21:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-25 20:42 mmap a /proc/<pid>/mem file? Dimitry Golubovsky
2010-01-25 21:02 ` Andreas Schwab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox