Hi... Sorry for this late reply.... > but what i was looking for .. where is the check that is being done > if the caller has the necessary access rights ? is it possible for me > to write code that gets pages for some process and write arbitrary > data to it !! impossible .. can you point me to what condition must > be hold so i can get some page for write access "or read access" well, nothing prevent you to use access_process_vm directly...but if you use it from user space (from ptrace() ), the following checks are enforced. you need to have CAP_SYS_PTRACE capability. Other than that, you need to be "root" and the current process which issue ptrace operation needs to be the direct parent of the target process. That's all I know..and somebody CMIIW regards Mulyadi -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/