Boost C++ Libraries: Ticket #5548: Boost interprocess shared memory mutex requires root permissions on Linux https://svn.boost.org/trac10/ticket/5548 <p> Programs that uses shared memory, especially shared memory mutex on Linux are working only when super-user permissions are granted. POSIX does not require that, so that is a bug in BOOST IPC implementation to require SU permissions. </p> <p> Workaround is to create a group that will have a high access rights to /dev/shm and then add all users that may use application to that group, but that is not solving all problems. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5548 Trac 1.4.3 habdank@… Wed, 18 May 2011 13:42:58 GMT <link>https://svn.boost.org/trac10/ticket/5548#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5548#comment:1</guid> <description> <p> On Windows it works as expected. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Fri, 27 May 2011 18:05:57 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5548#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5548#comment:2</guid> <description> <p> Interprocess uses POSIX calls (shm_open)to implement shared memory. Please review if those calls require SU permissions in your machine. If Interprocess correctly calls POSIX functions, then there is no bug in Interprocess. </p> </description> <category>Ticket</category> </item> <item> <author>habdank@…</author> <pubDate>Wed, 01 Jun 2011 07:59:46 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/5548 https://svn.boost.org/trac10/ticket/5548 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">Makefile</span> </li> </ul> Ticket habdank@… Wed, 01 Jun 2011 08:00:08 GMT attachment set https://svn.boost.org/trac10/ticket/5548 https://svn.boost.org/trac10/ticket/5548 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">shm.cpp</span> </li> </ul> Ticket habdank@… Wed, 01 Jun 2011 08:02:50 GMT <link>https://svn.boost.org/trac10/ticket/5548#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5548#comment:3</guid> <description> <p> In the attachments there is an example that is working when the user has admin rights, but when the user has no admin rights (normal OS user) boost part is failing and POSIX is working. OS specification: Ubuntu 10.04 LTS. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Sat, 24 Dec 2011 11:20:53 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5548#comment:4 https://svn.boost.org/trac10/ticket/5548#comment:4 <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">worksforme</span> </li> </ul> <p> As said this is outside interprocess, I think it's a bug in your OS init scripts, as POSIX requires shared memory to be usable from non-root users. </p> Ticket