Date: Mon, 10 Mar 1997 10:10:03 +0100 (MET) From: Guido van Rooij <guido@gvr.win.tue.nl> To: cschuber@uumail.gov.bc.ca Cc: freebsd-security@freebsd.org, wollman@lcs.mit.edu, danny@panda.hilink.com.au Subject: Re: 4.4BSD NFS File Handles (fwd) Message-ID: <199703100910.KAA11966@gvr.win.tue.nl> In-Reply-To: <199703091954.LAA00737@cwsys.cwent.com> from Cy Schubert at "Mar 9, 97 11:54:41 am"
next in thread | previous in thread | raw e-mail | index | archive | help
Cy Schubert wrote: > --- sys/kern/vfs_vnops.c.orig Thu Oct 26 02:17:22 1995 > +++ sys/kern/vfs_vnops.c Sun Mar 9 09:28:11 1997 > @@ -395,7 +395,10 @@ > sb->st_ctimespec = vap->va_ctime; > sb->st_blksize = vap->va_blocksize; > sb->st_flags = vap->va_flags; > - sb->st_gen = vap->va_gen; > + if (p->p_cred->pc_ucred->cr_uid == 0) > + sb->st_gen = vap->va_gen; > + else > + sb->st_gen = 0; > sb->st_blocks = vap->va_bytes / S_BLKSIZE; > return (0); > } > This was added last friday though slightly modified: if (p->p_ucred->cr_uid == 0) ... -Guido
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703100910.KAA11966>