Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Jan 1997 22:12:44 -0700
From:      Warner Losh <imp@village.org>
To:        m-braithwaite@sjca.edu
Cc:        freebsd-security@freebsd.org
Subject:   Re: Obvious fix for tempfile race conditions? 
Message-ID:  <E0viZGn-0006Qz-00@rover.village.org>
In-Reply-To: Your message of "Tue, 07 Jan 1997 22:31:17 EST." <199701080331.WAA02781@continuity.sjca.edu> 
References:  <199701080331.WAA02781@continuity.sjca.edu>  

next in thread | previous in thread | raw e-mail | index | archive | help
In message <199701080331.WAA02781@continuity.sjca.edu> Matt Braithwaite writes:
: If I've got that much of it right, why not simply add a mount option
: to disable symlinks on a given filesystem?

Because it isn't needed?  It is possible to safely remove file in /tmp
or other hostile grounds by using fchdir and comparing before and
after inode# and device# using stat and fstat.  Check out the netbsd
current list for a "saferm" that was posted there.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E0viZGn-0006Qz-00>