From owner-freebsd-questions Mon Jul 19 2:40: 6 1999 Delivered-To: freebsd-questions@freebsd.org Received: from waveconcepts.com (waveconcepts.com [207.126.116.40]) by hub.freebsd.org (Postfix) with ESMTP id 44D7F14BF6 for ; Mon, 19 Jul 1999 02:39:52 -0700 (PDT) (envelope-from siberian@siberian.org) Received: from [216.112.76.84] (gamera.siberian.org [216.112.76.84] (may be forged)) by waveconcepts.com (8.9.2/8.9.2) with ESMTP id CAA25681 for ; Mon, 19 Jul 1999 02:35:20 -0700 (PDT) Mime-Version: 1.0 X-Sender: siberian@207.126.116.40 Message-Id: In-Reply-To: <19990719093015.BC8DF150FB@hub.freebsd.org> References: <19990719093015.BC8DF150FB@hub.freebsd.org> Date: Mon, 19 Jul 1999 02:42:40 -0700 To: freebsd-questions@FreeBSD.ORG From: John Armstrong Subject: Strange Shared memory problem Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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