On Tue, Nov 29, 2005 at 07:34:47PM +0100, Goswin von Brederlow wrote:
> Does that work at all with normal executables (not code you manualy
> mmap)? Isn't that mapped read-only by default?
Well, if you look at /proc/<pid>/maps you'll see that shared libraries
(and the executable itself) are mapped twice: once with
PROT_EXEC and once with PROT_READ|PROT_WRITE.
Gabor
--
---------------------------------------------------------
MTA SZTAKI Computer and Automation Research Institute
Hungarian Academy of Sciences,
Laboratory of Parallel and Distributed Systems
Address : H-1132 Budapest Victor Hugo u. 18-22. Hungary
Phone/Fax : +36 1 329-78-64 (secretary)
W3 : http://www.lpds.sztaki.hu
---------------------------------------------------------
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]