Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email firstname.lastname@example.org
Re: Veractiy and FreeBSD
From: Garrett Wollman (wollmankhavrinen.lcs.mit.edu)
Date: Wed Nov 05 2003 - 11:41:53 CST
<<On Wed, 05 Nov 2003 11:58:21 +1030, Kim Needham <kim.needhamrocksoft.com> said:
> This is caused by a check that determines if the /proc filesystem is on
> the same device as the file being read to prevent reading in files of
> infinite length.
The correct way to perform this check is to call fstatfs() on the file
descriptor and examine f_fstypename to see what it is. You probably
shouldn't look explicitly at the type name; use getvfsbyname() on the
type name; if (vfc_flags & VFCF_SYNTHETIC) then the contents of the
file system are generated by the kernel.
freebsd-securityfreebsd.org mailing list
To unsubscribe, send any mail to "freebsd-security-unsubscribefreebsd.org"