ufs_checkpath
int ufs_checkpath(struct inode *, struct inode *, struct ucred *);
if ((error = ufs_checkpath(ip, dp, tcnp->cn_cred)) != 0) {