Could someone please tell me how to read-protect a vm_area? I copied the
mprotect_fixup() routine and the functions it calls, and changed them so
they accept an additional mm_struct pointer (to be used instead of
"current->mm"), and then tried to read-protect a shared memory segment
with it. As the protection flag, I &'d shm_vm_area->vm_flags with
~(PROT_READ | PROT_WRITE), and in another try with
~(PROT_READ | PROT_WRITE | PROT_EXEC).
It didn't work: The shared memory segment remained readable.
-Kamran Karimi
PS- The mprotect_fixup() was taken from a 2.1.49 kernel's mm/mprotect.c
file.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu