24 Sep
2008
24 Sep
'08
1 p.m.
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.