Lines Matching refs:path

128 static int create_fd(struct fsnotify_group *group, struct path *path,
142 new_file = dentry_open(path,
328 struct path *path = fanotify_event_path(event);
345 if (path && path->mnt && path->dentry) {
346 fd = create_fd(group, path, &f);
666 struct path *path, unsigned int flags, __u64 mask,
688 *path = f.file->f_path;
689 path_get(path);
699 ret = user_path_at(dfd, filename, lookup_flags, path);
705 ret = inode_permission(path->dentry->d_inode, MAY_READ);
707 path_put(path);
711 ret = security_path_notify(path, mask, obj_type);
713 path_put(path);
1052 static int fanotify_test_fid(struct path *path, __kernel_fsid_t *fsid)
1058 * Make sure path is not in filesystem with zero fsid (e.g. tmpfs).
1060 err = vfs_get_fsid(path->dentry, fsid);
1068 * Make sure path is not inside a filesystem subvolume (e.g. btrfs)
1071 err = vfs_get_fsid(path->dentry->d_sb->s_root, &root_fsid);
1086 if (!path->dentry->d_sb->s_export_op ||
1087 !path->dentry->d_sb->s_export_op->fh_to_dentry)
1093 static int fanotify_events_supported(struct path *path, __u64 mask,
1107 path->mnt->mnt_sb->s_type->fs_flags & FS_DISALLOW_NOTIFY_PERM)
1121 path->mnt->mnt_sb->s_flags & SB_NOUSER)
1134 struct path path;
1215 * carry enough information (i.e. path) to be filtered by mount point.
1233 ret = fanotify_find_path(dfd, pathname, &path, flags,
1239 ret = fanotify_events_supported(&path, mask, flags);
1245 ret = fanotify_test_fid(&path, &__fsid);
1252 /* inode held in place by reference to path; group by fget on fd */
1254 inode = path.dentry->d_inode;
1256 mnt = path.mnt;
1300 path_put(&path);