From owner-freebsd-fs Fri Jun 8 6: 9:31 2001 Delivered-To: freebsd-fs@freebsd.org Received: from anchor-post-32.mail.demon.net (anchor-post-32.mail.demon.net [194.217.242.90]) by hub.freebsd.org (Postfix) with ESMTP id 4D53D37B407; Fri, 8 Jun 2001 06:09:27 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from [62.49.251.130] (helo=herring.nlsystems.com) by anchor-post-32.mail.demon.net with esmtp (Exim 2.12 #1) id 158M1s-000Jde-0W; Fri, 8 Jun 2001 14:10:20 +0100 Received: from herring (herring [10.0.0.2]) by herring.nlsystems.com (8.11.2/8.11.2) with ESMTP id f58D8A724309; Fri, 8 Jun 2001 14:08:10 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Fri, 8 Jun 2001 14:08:10 +0100 (BST) From: Doug Rabson To: Assar Westerlund Cc: "Patrick W. Penzias Dirks" , , Subject: Re: Support for pivot_root-like system call? In-Reply-To: <5lelsvtawi.fsf@assaris.sics.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 8 Jun 2001, Assar Westerlund wrote: > "Patrick W. Penzias Dirks" writes: > > I'm the filesystems tech lead in Apple's Mac OS X Core OS group. > > Prompted by the needs of, among others, virus protection software > > developers who want to be able to mount "on" the root directory to > > intercept ALL filesystem calls in the system, I'm contemplating > > implementation of a new system call in Mac OS X to do something like > > Linux's pivot_root system call: > > > > int pivot_root(const char *new_root, const char *put_old); > > Could you explain to me/us how you would implement virus protection > software (or something similiar), based on pivot_root? > > Is there any such stuff for linux that uses pivot_root? Musing about virus protection (not particularly about pivot_root), I guess the best way to intercept all attempts to manipulate files on a given fs would be to make the virus checker a stackable VFS layer. -- Doug Rabson Mail: dfr@nlsystems.com Phone: +44 20 8348 6160 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message