[Boost-bugs] [Boost C++ Libraries] #4417: share_memory_object

Subject: [Boost-bugs] [Boost C++ Libraries] #4417: share_memory_object
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-07-09 17:34:36


#4417: share_memory_object
--------------------------+-------------------------------------------------
 Reporter: Bill | Owner:
     Type: Bugs | Status: new
Milestone: Boost 1.44.0 | Component: None
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------
 Using boost shared memroy. One process creates shared memory runnig as an
 administrator on windows.

 share_memory_object( open_or_create, <sharename>, read_write)

 This returns success and a temp file is created:
 C:/ProgramData/boost_interprocess/##########/<sharename>

 Another process ( not running as administrator) tries to open and map to
 shared memory.

 share_memory_object( open_only, <sharename>, read_write)

 This failes with an "access denied" error

 On further investigation the following call fails on windows:

 CreateFileA(....)

 After futher investigation it is determined that the file permissions(
 security ) is only read for other users. Once these permissions are opened
 up( manually) for full access to all users, the CreateFileA(...) returns
 success.

 IN other words.......the process running as administrator runs and creates
 temp file. Then the file permissions need to be adjusted to allow full
 access. Then the second process can come in and open the file.

 Bill, [http://radiologydegreeonline.net/ Radiology Degrees]

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4417>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:03 UTC