From owner-freebsd-hackers Fri Sep 28 16:29:17 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from guru.mired.org (okc-94-248-46.mmcable.com [24.94.248.46]) by hub.freebsd.org (Postfix) with SMTP id 69F9437B40E for ; Fri, 28 Sep 2001 16:29:10 -0700 (PDT) Received: (qmail 63354 invoked by uid 100); 28 Sep 2001 23:29:09 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15285.1989.876502.979545@guru.mired.org> Date: Fri, 28 Sep 2001 18:29:09 -0500 To: Samuel Greear Cc: freebsd-hackers@freebsd.org Subject: Re: dirlist mangling In-Reply-To: <01092501160402.10676@beware.dragonknight.net> References: <01092501160402.10676@beware.dragonknight.net> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Samuel Greear types: > Never done any kernel hacking before so I'm just looking > for some pointers. What's needed is a mechanism to > specify a directory (or set of them) and whenever a request > is made for the contents of that directory, if it exists in the > list then what is returned needs to be mangled in some > ways. For instance an ls in a directory in the list might > only return a list of files that you own, or that you have > permission to read. Since no one else bothered to answer this one - at least in public - I'll take a crack at it. I think you want to do this as a file system. Take a look at the mount_umap man to see what kind of things you can do. You could use that as a starting point - except you really ought to get the umap file system working first. http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message