From owner-freebsd-questions Mon Aug 4 17:51:08 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA09253 for questions-outgoing; Mon, 4 Aug 1997 17:51:08 -0700 (PDT) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA09244 for ; Mon, 4 Aug 1997 17:51:04 -0700 (PDT) Received: (from root@localhost) by dyson.iquest.net (8.8.6/8.8.5) id TAA01021; Mon, 4 Aug 1997 19:50:23 -0500 (EST) From: "John S. Dyson" Message-Id: <199708050050.TAA01021@dyson.iquest.net> Subject: Re: mmap and MAP_ANON In-Reply-To: <199784172215241@> from "rtwalsh@ix.netcom.com" at "Aug 4, 97 07:22:36 pm" To: rtwalsh@ix.netcom.com Date: Mon, 4 Aug 1997 19:50:23 -0500 (EST) Cc: questions@FreeBSD.ORG Reply-To: dyson@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Hello there, > > Sorry to bug you with a question, but I couldn't find the answer anywhere, so here goes: > > I am trying to create a "named" memory map, with the name being "69", as in the function call > below: > > pMem1 = mmap( NULL, 100000, PROT_READ | PROT_WRITE, MAP_ANON | MAP_SHARED, 69, 0 ); > Probably broken. > > Any suggestions as to how I can get a > moderately secure block of shared memory? > Try mmaping a file. You can use file access perms for security. John