LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 06-04-2007, 07:16 PM   #1
gonzalesmico
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Rep: Reputation: 0
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
 
Old 06-05-2007, 03:22 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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.
 
Old 06-07-2007, 01:37 PM   #3
gonzalesmico
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Original Poster
Rep: Reputation: 0
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"?
 
Old 06-07-2007, 02:31 PM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
So anyone with the correct key (a string?) accessing shared memory via a network doesn't sound insecure? It does to me.
--- rod.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
accessing windows shared files from suse 10 computer Linux - Newbie 3 06-04-2006 12:27 PM
Accessing shared memory from kernel awang987 Linux - Kernel 5 04-29-2006 03:57 PM
Samba not accessing my Windows Shared folders Felpipe Linux - Networking 3 08-04-2005 08:34 AM
Accessing windows shared folders in linux srivatsava Linux - Networking 1 09-29-2004 03:01 PM


All times are GMT -5. The time now is 03:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration