LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Accessing shared memory opened in a windows process in a connected linux pc (https://www.linuxquestions.org/questions/programming-9/accessing-shared-memory-opened-in-a-windows-process-in-a-connected-linux-pc-559177/)

gonzalesmico 06-04-2007 07:16 PM

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

theNbomr 06-05-2007 03:22 PM

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.

gonzalesmico 06-07-2007 01:37 PM

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"?

theNbomr 06-07-2007 02:31 PM

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.