Kern_symlink(...) is not setting vattr.va_type

David Malone dwmalone at maths.tcd.ie
Mon Feb 27 05:59:39 PST 2006


On Mon, Feb 27, 2006 at 04:27:53PM +0530, Rohit Jalan wrote:
> I've reproduced the following from vfs_syscalls.c,v 1.399.  
> Vattr.va_type is set only if MAC is defined, should not it
> be set always? Or is setting the same a responsibility of 
> VOP_SYMLINK()?

I think VOP_SYMLINK does the work for us. If you check back
through the file's history, this line was added in revision
1.295 when the MAC framework was introduced.

	David.


More information about the freebsd-current mailing list