Lines Matching refs:ndp
155 static struct audit_parent *audit_init_parent(struct nameidata *ndp)
170 wd = inotify_add_watch(audit_ih, &parent->wdata, ndp->dentry->d_inode,
1080 static int audit_get_nd(char *path, struct nameidata **ndp,
1109 *ndp = ndparent;
1116 static void audit_put_nd(struct nameidata *ndp, struct nameidata *ndw)
1118 if (ndp) {
1119 path_release(ndp);
1120 kfree(ndp);
1162 static int audit_add_watch(struct audit_krule *krule, struct nameidata *ndp,
1183 if (inotify_find_watch(audit_ih, ndp->dentry->d_inode, &i_watch) < 0) {
1184 parent = audit_init_parent(ndp);
1213 struct nameidata *ndp, *ndw;
1239 err = audit_get_nd(watch->path, &ndp, &ndw);
1248 err = audit_add_watch(&entry->rule, ndp, ndw);
1273 audit_put_nd(ndp, ndw);
1279 audit_put_nd(ndp, ndw);