From owner-freebsd-security Thu Mar 6 22:03:38 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA17228 for security-outgoing; Thu, 6 Mar 1997 22:03:38 -0800 (PST) Received: (from mpp@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA17190; Thu, 6 Mar 1997 22:02:50 -0800 (PST) From: Mike Pritchard Message-Id: <199703070602.WAA17190@freefall.freebsd.org> Subject: Re: 4.4BSD NFS File Handles (fwd) To: danny@panda.hilink.com.au (Daniel O'Callaghan) Date: Thu, 6 Mar 1997 22:02:49 -0800 (PST) Cc: freebsd-security@freebsd.org In-Reply-To: from "Daniel O'Callaghan" at Mar 7, 97 04:15:41 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-security@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Daniel O'Callaghan wrote: > > In addition to returning traditional information, such as the creation time, > size, inode number and last modification time, the 4.4BSD stat(2) system > call and related functions return a field called st_gen. The st_gen field > is a 4 byte value which is different for each item on the filesystem. I've worked on other systems in the past where we only returned st_gen if the caller was root. If I remember right, the last time I looked at how the kernel assigned generation number, it didn't do a very good job of it (they were pretty predictable). We should probaby change them to use the random() kernel function. -- Mike Pritchard mpp@FreeBSD.org "Go that way. Really fast. If something gets in your way, turn"