How to set write protection to all page in Virtual memory of a process?
Hi all,
I want to write a function that set write protection to all page in Virtual memory. I that moment, I do like that: Code:
mm = task->mm; But it just set write protection for a part of memory, it does't set write protection to all page that process is using. Somebody can help me, please! |
Hi,
Can you specify, which type of operating system are you using of Linux? Is it RHEL, Ubuntu, Centos, Fedora etc.... |
@OP memory is in pages, as far as the OS is concerned
@Kelvin try "man mprotect" |
All times are GMT -5. The time now is 11:34 PM. |