|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: Veractiy and FreeBSD
From: Garrett Wollman (wollman
khavrinen.lcs.mit.edu)
Date: Wed Nov 05 2003 - 11:41:53 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
<<On Wed, 05 Nov 2003 11:58:21 +1030, Kim Needham <kim.needham
rocksoft.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.
-GAWollman
_______________________________________________
freebsd-security
freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscribe
freebsd.org"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]