Accessing shared memory opened in a windows process in a connected linux pc
Hi, In my network there are 2 computers, one windows and one linux. The window pc creates a shared memory buffer using the CreateFileMapping function and a memory name string. The shared memory can then easily be accessed by another windows computer using the OpenFileMapping function and the string as a parameter. What I need to do, however is to do the same under linux, meaning I need to access the shared memory from the linunx computer, and all I got to go by is the memory name string (the process that creates the shared memory is not mine and I cannot change it). Does anyone know how to do this? Thanks in advance.
Mico |
I wanted to shout out "Are you crazy? That would be a huge security hole!". But then you said it was on a Windows host, so I wouldn't be surprised if it actually is possible.
--- rod. |
I'm obviously no shared memory expert, but why would that constitute a huge security hole? If the code allows *any* connected windows based machine to use the shared memory by giving the correct string parameter, how come allowing a connected unix machine to do the same is a "huge security hole"?
|
So anyone with the correct key (a string?) accessing shared memory via a network doesn't sound insecure? It does to me.
--- rod. |
All times are GMT -5. The time now is 05:25 AM. |