Boost logo

Boost Users :

Subject: [Boost-users] Boost Interprocess: Sharing memory among different users
From: Silvio Reis Junior (sreisjr_at_[hidden])
Date: 2008-09-24 09:00:41


Hello folks!I'm writing a software for the Linux environment. I'll need to
share data between a daemon and a program running on the user's context.
I chose to use shared memory because it's faster.
I'm trying to use boost::interprocess::shared_memory_object but I'm facing a
problem:
When I access the shared memory in my test case running in the same user
context, everything works fine.
But when I access it using a program running in the current user when the
shared memory was created as root, I get an access denied error.
I searched in the documentation for a way to enable access to all users but
I found nothing.
Is there a way to do it?

Thanks in advance.
Silvio.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net