Boost C++ Libraries: Ticket #4350: Shared memory permission limitations https://svn.boost.org/trac10/ticket/4350 <p> Using boost shared memroy. One process creates shared memory runnig as an administrator on windows. </p> <p> share_memory_object( open_or_create, &lt;sharename&gt;, read_write) </p> <p> This returns success and a temp file is created: C:/ProgramData/boost_interprocess/##########/&lt;sharename&gt; </p> <p> Another process ( not running as administrator) tries to open and map to shared memory. </p> <p> share_memory_object( open_only, &lt;sharename&gt;, read_write) </p> <p> This failes with an "access denied" error </p> <p> On further investigation the following call fails on windows: </p> <p> CreateFileA(....) </p> <p> 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. </p> <p> 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. </p> <p> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4350 Trac 1.4.3 Ion Gaztañaga Thu, 26 Aug 2010 10:34:09 GMT status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/4350#comment:1 https://svn.boost.org/trac10/ticket/4350#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.43.0</span> → <span class="trac-field-new">Boost-1.45.0</span> </li> </ul> <p> A new permission scheme is added for boost 1.45 in release branch. You can specify permissions for shared memory. </p> Ticket