Boost C++ Libraries: Ticket #5123: Interprocess: permissions are changed when opening a memory segment https://svn.boost.org/trac10/ticket/5123 <p> In linux, fchmod is used to set the permissions after successfully shm_opening a segment. This is good to circumvent the problems caused by umask, but there is an error and fchmod is also run when opening (as opposed to creating) the segment, which means that opening a segment always resets its permissions to the defaults. </p> <p> This can be easily fixed by changing, in shared_memory_object.hpp, the line </p> <blockquote> <p> if(m_handle &gt;= 0) </p> </blockquote> <p> right before the fchmod with: </p> <blockquote> <p> if(m_handle &gt;= 0 &amp;&amp; type != detail::<a class="missing wiki">DoOpen</a>) </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5123 Trac 1.4.3 Ion Gaztañaga Fri, 01 Apr 2011 17:42:33 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5123#comment:1 https://svn.boost.org/trac10/ticket/5123#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> </ul> <p> Fixed in Boost 1.47 </p> Ticket