'\" t .\" Title: d_validate .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: The Linux VFS .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "D_VALIDATE" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "The Linux VFS" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" d_validate \- verify dentry provided from insecure source (deprecated) .SH "SYNOPSIS" .HP \w'int\ d_validate('u .BI "int d_validate(struct\ dentry\ *\ " "dentry" ", struct\ dentry\ *\ " "dparent" ");" .SH "ARGUMENTS" .PP \fIdentry\fR .RS 4 The dentry alleged to be valid child of \fIdparent\fR .RE .PP \fIdparent\fR .RS 4 The parent dentry (known to be valid) .RE .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\&. .PP This function is slow for big directories, and deprecated, do not use it\&. .SH "COPYRIGHT" .br