.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "D_VALIDATE" "" "06 October 2005" "" "" .SH NAME d_validate \- verify dentry provided from insecure source .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int d_validate (struct dentry * \fIdentry\fB, struct dentry * \fIdparent\fB); \fR .SH "ARGUMENTS" .TP \fB\fIdentry\fB\fR The dentry alleged to be valid child of \fIdparent\fR .TP \fB\fIdparent\fB\fR The parent dentry (known to be valid) .SH "DESCRIPTION" .PP An insecure source has sent us a dentry, here we verify it and \fBdget\fR it. This is used by ncpfs in its readdir implementation. Zero is returned in the dentry is invalid.