Date: Mon, 19 Jul 1999 02:42:40 -0700 From: John Armstrong <siberian@siberian.org> To: freebsd-questions@FreeBSD.ORG Subject: Strange Shared memory problem Message-ID: <v0421016eb3b8a28430c4@[216.112.76.84]> In-Reply-To: <19990719093015.BC8DF150FB@hub.freebsd.org> References: <19990719093015.BC8DF150FB@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello all- I recently moved a system from 3.0 to 3.2 and some of my code has broken. Specifically, I am using Perl 5 and IPC::Shareable to share memory between apache processes. Under 3.0 ( where we developed the software ) everything worked great. Now that we have moved up to 3.2 the same exact code breaks with the error : shmget returned undef: Permission denied at <scriptname> <line #> I have done a ton of testing on this and the result says this : If user root uses the scripts everything works great. Memory can be accessed in both read and write methods. Any other user can not read or write to any shared memory regardless of its state. Were there some security changes or something in 3.2 that would make it so that users can not access shared memory resources? Was I taking advantage of a 'feature' in 3.0 that has been closed off in 3.2? Finally, regardless of the outcome, how can I turn on shared memory access for all users or given users? Is there a kernel config option for it? Thanks for any help. Sorry for the long email but the situation has gotten desperate. John- ------------------------------------------------------------------ The Earth weighs approximately 6,588,000,000,000,000,000,000,000 tons. -Uncle John's Fourth Bathroom Reader To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v0421016eb3b8a28430c4>