Unix Programming - Protecting Memory Regions

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > March 2005 > Protecting Memory Regions





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Protecting Memory Regions
Christoph Bartoschek

2005-03-30, 7:22 pm

Hi,

is it possible to change a memory region from read-write to read-only and
back to read-write?

The memory might be allocated via malloc or mmap.
I'm interested in solutions for AIX and Linux

Greets,
Christoph Bartoschek
Don Morris

2005-03-30, 7:22 pm

Christoph Bartoschek wrote:
> Hi,
>
> is it possible to change a memory region from read-write to read-only and
> back to read-write?
>
> The memory might be allocated via malloc or mmap.
> I'm interested in solutions for AIX and Linux
>


man mprotect

Don
Christoph Bartoschek

2005-03-30, 7:23 pm

Don Morris wrote:

>
> man mprotect
>
> Don


Thanks
Christoph Bartoschek
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com