D_VALIDATE

Section: The Linux VFS (9)
Updated: February 2011
Index Return to Main Contents
 

NAME

d_validate - verify dentry provided from insecure source  

SYNOPSIS

int d_validate(struct dentry * dentry, struct dentry * parent);
 

ARGUMENTS

dentry

The dentry alleged to be valid child of dparent

parent

-- undescribed --
 

DESCRIPTION

An insecure source has sent us a dentry, here we verify it and dget it. This is used by ncpfs in its readdir implementation. Zero is returned in the dentry is invalid.  

COPYRIGHT