Re: reading process memory

2006-06-08 Thread Tofik Suleymanov
James Riendeau wrote: I'm going to anticipate your next question, and say that if you're not the parent, you will have to attach to the process. How that's done? I don't know, probably through a system call to ptrace or writing to the procfs ctl directory. I'm speaking through erudite

Re: reading process memory

2006-06-08 Thread Dmitry Pryanishnikov
Hello! On Wed, 7 Jun 2006, Tofik Suleymanov wrote: I believe that it is possible to read contents of the memory used/utilized by a process (assuming right privileges). Yes, procfs allows it to user with the process's UID (or root). First i've tried to do this through procfs by reading

Re: reading process memory

2006-06-08 Thread Pranav Peshwe
On 6/7/06, Tofik Suleymanov [EMAIL PROTECTED] wrote: Hello, folks I believe that it is possible to read contents of the memory used/utilized by a process (assuming right privileges). First i've tried to do this through procfs by reading 'mem' property of the given process, but no success.

reading process memory

2006-06-07 Thread Tofik Suleymanov
Hello, folks I believe that it is possible to read contents of the memory used/utilized by a process (assuming right privileges). First i've tried to do this through procfs by reading 'mem' property of the given process, but no success. Maybe there is another way of doing such things ? Any

Re: reading process memory

2006-06-07 Thread James Riendeau
How are you defining assuming right privileges? The only way you're going to be able to read another processes address space is in the kernel. Even a process running as root is not able to read another process's data. One of the principle responsibilities of the OS is to manage the

Re: reading process memory

2006-06-07 Thread Bill Moran
I believe that it is possible to read contents of the memory used/ utilized by a process (assuming right privileges). First i've tried to do this through procfs by reading 'mem' property of the given process, but no success. Maybe there is another way of doing such things ? Any

Re: reading process memory

2006-06-07 Thread James Riendeau
Ahh. I think I goofed slightly. I think your application has to be the parent of the running process to get at that property. See: http://www.informit.com/articles/article.asp?p=366888seqNum=10 James Riendeau MMI Computer Support Technician 1300 University Ave Rm. 436, Dept. of MedMicro

Re: reading process memory

2006-06-07 Thread James Riendeau
I'm going to anticipate your next question, and say that if you're not the parent, you will have to attach to the process. How that's done? I don't know, probably through a system call to ptrace or writing to the procfs ctl directory. I'm speaking through erudite knowledge rather than