Home
last modified time | relevance | path

Searched refs:f_path (Results 1 – 25 of 138) sorted by relevance

123456

/linux/tools/hv/
H A Dvmbus_testing148 for f_path in glob.iglob(path + '**/*'):
149 if (os.path.isfile(f_path)):
150 if (f_path.rsplit("/",2)[0] == debugfs_hyperv_path):
151 directory = f_path.rsplit("/",1)[0]
153 directory = f_path.rsplit("/",2)[0]
154 f_name = f_path.split("/")[-1]
156 file_map[directory].update({f_name:f_path})
158 file_map[directory] = {f_name:f_path}
159 elif (os.path.isdir(f_path)):
160 recursive_file_lookup(f_path,file_map)
/linux/security/ipe/
H A Dpolicy_fs.c54 root = d_inode(f->f_path.dentry->d_parent); in read_pkcs7()
97 root = d_inode(f->f_path.dentry->d_parent); in read_policy()
134 root = d_inode(f->f_path.dentry->d_parent); in read_name()
174 root = d_inode(f->f_path.dentry->d_parent); in read_version()
226 root = d_inode(f->f_path.dentry->d_parent); in setactive()
264 root = d_inode(f->f_path.dentry->d_parent); in getactive()
317 root = d_inode(f->f_path.dentry->d_parent); in update_policy()
366 root = d_inode(f->f_path.dentry->d_parent); in delete_policy()
H A Deval.c26 #define FILE_SUPERBLOCK(f) ((f)->f_path.mnt->mnt_sb)
105 ino = d_real_inode(file->f_path.dentry); in ipe_build_eval_ctx()
/linux/sound/soc/sof/
H A Dsof-client-ipc-kernel-injector.c28 int ret = debugfs_file_get(file->f_path.dentry); in sof_msg_inject_dfs_open()
35 debugfs_file_put(file->f_path.dentry); in sof_msg_inject_dfs_open()
79 debugfs_file_put(file->f_path.dentry); in sof_msg_inject_dfs_release()
H A Dsof-client-ipc-flood-test.c44 ret = debugfs_file_get(file->f_path.dentry); in sof_ipc_flood_dfs_open()
50 debugfs_file_put(file->f_path.dentry); in sof_ipc_flood_dfs_open()
261 debugfs_file_put(file->f_path.dentry); in sof_ipc_flood_dfs_release()
H A Dsof-client-ipc-msg-injector.c41 ret = debugfs_file_get(file->f_path.dentry); in sof_msg_inject_dfs_open()
47 debugfs_file_put(file->f_path.dentry); in sof_msg_inject_dfs_open()
229 debugfs_file_put(file->f_path.dentry);
H A Dipc4-mtrace.c126 ret = debugfs_file_get(file->f_path.dentry); in sof_ipc4_mtrace_dfs_open()
132 debugfs_file_put(file->f_path.dentry); in sof_ipc4_mtrace_dfs_open()
139 debugfs_file_put(file->f_path.dentry); in sof_ipc4_mtrace_dfs_open()
276 debugfs_file_put(file->f_path.dentry); in sof_ipc4_mtrace_dfs_read()
/linux/security/tomoyo/
H A Dtomoyo.c111 &bprm->file->f_path, O_RDONLY); in tomoyo_bprm_check_security()
147 return tomoyo_path_truncate(&file->f_path); in tomoyo_file_truncate()
317 return tomoyo_check_open_permission(tomoyo_domain(), &file->f_path, in tomoyo_file_fcntl()
334 return tomoyo_check_open_permission(tomoyo_domain(), &f->f_path, in tomoyo_file_open()
350 return tomoyo_path_number_perm(TOMOYO_TYPE_IOCTL, &file->f_path, cmd); in tomoyo_file_ioctl()
/linux/fs/
H A Dfile_attr.c318 err = vfs_fileattr_get(file->f_path.dentry, &fa); in ioctl_getflags()
327 struct dentry *dentry = file->f_path.dentry; in ioctl_setflags()
349 err = vfs_fileattr_get(file->f_path.dentry, &fa); in ioctl_fsgetxattr()
359 struct dentry *dentry = file->f_path.dentry; in ioctl_fssetxattr()
405 filepath = fd_file(f)->f_path; in SYSCALL_DEFINE5()
467 filepath = fd_file(f)->f_path; in SYSCALL_DEFINE5()
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_d_path.c58 ret = bpf_d_path(&file->f_path, in BPF_PROG()
76 ret = bpf_d_path(&file->f_path, in BPF_PROG()
H A Dfind_vma.c28 vma->vm_file->f_path.dentry->d_shortname.string); in check_vma()
/linux/security/landlock/
H A Dsyscalls.c307 (fd_file(f)->f_path.mnt->mnt_flags & MNT_INTERNAL) || in get_path_from_fd()
308 (fd_file(f)->f_path.dentry->d_sb->s_flags & SB_NOUSER) || in get_path_from_fd()
309 IS_PRIVATE(d_backing_inode(fd_file(f)->f_path.dentry))) in get_path_from_fd()
312 *path = fd_file(f)->f_path; in get_path_from_fd()
/linux/include/linux/
H A Dfsnotify.h127 return fsnotify_path(&file->f_path, mask); in fsnotify_file()
154 int ret = fsnotify_pre_content(&file->f_path, ppos, count); in fsnotify_file_area_perm()
168 return fsnotify_path(&file->f_path, FS_ACCESS_PERM); in fsnotify_file_area_perm()
183 return fsnotify_pre_content(&file->f_path, &off, len); in fsnotify_mmap_perm()
/linux/fs/ocfs2/
H A Dfile.c88 trace_ocfs2_file_open(inode, file, file->f_path.dentry, in ocfs2_file_open()
90 file->f_path.dentry->d_name.len, in ocfs2_file_open()
91 file->f_path.dentry->d_name.name, mode); in ocfs2_file_open()
142 trace_ocfs2_file_release(inode, file, file->f_path.dentry, in ocfs2_file_release()
144 file->f_path.dentry->d_name.len, in ocfs2_file_release()
145 file->f_path.dentry->d_name.name, in ocfs2_file_release()
177 trace_ocfs2_sync_file(inode, file, file->f_path.dentry, in ocfs2_sync_file()
179 file->f_path.dentry->d_name.len, in ocfs2_sync_file()
180 file->f_path.dentry->d_name.name, in ocfs2_sync_file()
2262 struct dentry *dentry = file->f_path.dentry; in ocfs2_prepare_inode_for_write()
[all …]
/linux/fs/ecryptfs/
H A Dfile.c40 struct path path = ecryptfs_lower_path(file->f_path.dentry); in ecryptfs_read_update_atime()
64 struct path path = ecryptfs_lower_path(in->f_path.dentry); in ecryptfs_splice_read_update_atime()
212 struct dentry *ecryptfs_dentry = file->f_path.dentry; in ecryptfs_open()
279 struct dentry *ecryptfs_dentry = file->f_path.dentry; in ecryptfs_dir_open()
/linux/fs/fuse/
H A Dbacking.c106 res = d_is_dir(file->f_path.dentry) ? -EISDIR : -EINVAL; in fuse_backing_open()
107 if (!d_is_reg(file->f_path.dentry)) in fuse_backing_open()
H A Dpassthrough.c170 backing_file = backing_file_open(&file->f_path, file->f_flags, in fuse_passthrough_open()
171 &fb->file->f_path, fb->cred); in fuse_passthrough_open()
/linux/security/apparmor/
H A Dfile.c512 &file->f_path, buffer, in __file_path_perm()
526 profile, &file->f_path, in __file_path_perm()
532 profile, &file->f_path, in __file_path_perm()
632 if (unlikely(file->f_path.dentry == aa_null.dentry)) in aa_file_perm()
660 if (path_mediated_fs(file->f_path.dentry)) in aa_file_perm()
/linux/fs/proc/
H A Dfd.c59 real_mount(file->f_path.mnt)->mnt_id, in seq_show()
186 *path = fd_file->f_path; in proc_fd_link()
187 path_get(&fd_file->f_path); in proc_fd_link()
/linux/fs/overlayfs/
H A Dreaddir.c797 struct dentry *dir = file->f_path.dentry; in ovl_iterate_real()
813 struct path statpath = file->f_path; in ovl_iterate_real()
825 rdt.cache = ovl_cache_get_impure(&file->f_path); in ovl_iterate_real()
839 struct dentry *dentry = file->f_path.dentry; in ovl_iterate_merged()
859 err = ovl_cache_update(&file->f_path, p, !p->ino); in ovl_iterate_merged()
877 struct dentry *dentry = file->f_path.dentry; in ovl_need_adjust_d_ino()
974 struct dentry *dentry = file->f_path.dentry; in ovl_dir_real_file()
1052 type = ovl_path_real(file->f_path.dentry, &realpath); in ovl_dir_open()
/linux/fs/notify/
H A Dfsnotify.c617 struct dentry *dentry = file->f_path.dentry, *parent; in fsnotify_open_perm_and_set_mode()
640 mnt_mask = READ_ONCE(real_mount(file->f_path.mnt)->mnt_fsnotify_mask); in fsnotify_open_perm_and_set_mode()
681 int ret = fsnotify_path(&file->f_path, FS_OPEN_EXEC_PERM); in fsnotify_open_perm_and_set_mode()
688 return fsnotify_path(&file->f_path, FS_OPEN_PERM); in fsnotify_open_perm_and_set_mode()
/linux/fs/autofs/
H A Droot.c80 struct dentry *dentry = file->f_path.dentry; in autofs_dir_open()
99 if (!path_is_mountpoint(&file->f_path) && autofs_empty(ino)) { in autofs_dir_open()
895 return autofs_ask_umount(filp->f_path.mnt, p); in autofs_root_ioctl_unlocked()
899 return autofs_expire_run(inode->i_sb, filp->f_path.mnt, sbi, p); in autofs_root_ioctl_unlocked()
903 filp->f_path.mnt, sbi, p); in autofs_root_ioctl_unlocked()
/linux/fs/erofs/
H A Dishare.c116 path_get(&file->f_path); in erofs_ishare_file_open()
117 backing_file_set_user_path(realfile, &file->f_path); in erofs_ishare_file_open()
/linux/security/integrity/ima/
H A Dima_main.c119 *pathname = ima_d_path(&file->f_path, pathbuf, in mmap_violation_check()
173 *pathname = ima_d_path(&file->f_path, pathbuf, filename); in ima_rdwr_violation_check()
201 vfs_getattr_nosec(&file->f_path, &stat, in ima_check_last_writer()
418 pathname = ima_d_path(&file->f_path, &pathbuf, filename); in process_measurement()
562 pathname = ima_d_path(&file->f_path, &pathbuf, filename); in ima_file_mprotect()
/linux/fs/hfsplus/
H A Dioctl.c29 struct dentry *dentry = file->f_path.dentry; in hfsplus_ioctl_bless()

123456