| /linux/tools/hv/ |
| H A D | vmbus_testing | 148 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 D | policy_fs.c | 54 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 D | eval.c | 26 #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 D | sof-client-ipc-kernel-injector.c | 27 int ret = debugfs_file_get(file->f_path.dentry); in sof_msg_inject_dfs_open() 34 debugfs_file_put(file->f_path.dentry); in sof_msg_inject_dfs_open() 78 debugfs_file_put(file->f_path.dentry); in sof_msg_inject_dfs_release()
|
| H A D | sof-client-ipc-flood-test.c | 43 ret = debugfs_file_get(file->f_path.dentry); in sof_ipc_flood_dfs_open() 49 debugfs_file_put(file->f_path.dentry); in sof_ipc_flood_dfs_open() 260 debugfs_file_put(file->f_path.dentry); in sof_ipc_flood_dfs_release()
|
| H A D | sof-client-ipc-msg-injector.c | 40 ret = debugfs_file_get(file->f_path.dentry); in sof_msg_inject_dfs_open() 46 debugfs_file_put(file->f_path.dentry); in sof_msg_inject_dfs_open() 228 debugfs_file_put(file->f_path.dentry); in sof_msg_inject_dfs_release()
|
| H A D | ipc4-mtrace.c | 126 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 D | tomoyo.c | 111 &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 D | open.c | 166 struct dentry *dentry = file->f_path.dentry; in do_ftruncate() 189 error = fsnotify_truncate_perm(&file->f_path, length); in do_ftruncate() 582 if (!d_can_lookup(fd_file(f)->f_path.dentry)) in SYSCALL_DEFINE1() 587 set_fs_pwd(current->fs, &fd_file(f)->f_path); in SYSCALL_DEFINE1() 646 if (!d_can_lookup(fd_file(f)->f_path.dentry)) in SYSCALL_DEFINE2() 656 path = fd_file(f)->f_path; in SYSCALL_DEFINE2() 703 return chmod_common(&file->f_path, mode); in vfs_fchmod() 890 error = chown_common(&file->f_path, user, group); in vfs_fchown() 917 error = mnt_get_write_access(f->f_path.mnt); in file_get_write_access() 928 mnt_put_write_access(f->f_path.mnt); in file_get_write_access() [all …]
|
| H A D | file_attr.c | 323 err = vfs_fileattr_get(file->f_path.dentry, &fa); 332 struct dentry *dentry = file->f_path.dentry; in ioctl_setflags() 354 err = vfs_fileattr_get(file->f_path.dentry, &fa); in ioctl_fsgetxattr() 364 struct dentry *dentry = file->f_path.dentry; in ioctl_fssetxattr() 410 filepath = fd_file(f)->f_path; in SYSCALL_DEFINE5() 472 filepath = fd_file(f)->f_path; in SYSCALL_DEFINE5()
|
| H A D | file_table.c | 199 memset(&f->__f_path, 0, sizeof(f->f_path)); in init_file() 476 f = alloc_file(&base->f_path, flags, fops); in alloc_file_clone() 478 path_get(&f->f_path); in alloc_file_clone() 488 struct dentry *dentry = file->f_path.dentry; in __fput() 489 struct vfsmount *mnt = file->f_path.mnt; in __fput()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_d_path.c | 58 ret = bpf_d_path(&file->f_path, in BPF_PROG() 76 ret = bpf_d_path(&file->f_path, in BPF_PROG()
|
| H A D | find_vma.c | 28 vma->vm_file->f_path.dentry->d_shortname.string); in check_vma()
|
| H A D | verifier_vfs_accept.c | 80 path = &file->f_path; in BPF_PROG()
|
| /linux/fs/ocfs2/ |
| H A D | file.c | 88 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() 2267 struct dentry *dentry = file->f_path.dentry; in ocfs2_prepare_inode_for_write() [all …]
|
| /linux/security/landlock/ |
| H A D | syscalls.c | 347 (fd_file(f)->f_path.mnt->mnt_flags & MNT_INTERNAL) || in get_path_from_fd() 348 (fd_file(f)->f_path.dentry->d_sb->s_flags & SB_NOUSER) || in get_path_from_fd() 349 IS_PRIVATE(d_backing_inode(fd_file(f)->f_path.dentry))) in get_path_from_fd() 352 *path = fd_file(f)->f_path; in get_path_from_fd()
|
| /linux/fs/cachefiles/ |
| H A D | interface.c | 174 ret = vfs_truncate(&file->f_path, dio_size); in cachefiles_shorten_object() 179 cachefiles_remove_object_xattr(cache, object, file->f_path.dentry); in cachefiles_shorten_object() 194 cachefiles_remove_object_xattr(cache, object, file->f_path.dentry); in cachefiles_shorten_object() 368 obj = start_removing_dentry(fan, old_file->f_path.dentry); in cachefiles_invalidate_cookie()
|
| H A D | xattr.c | 43 struct dentry *dentry = file->f_path.dentry; in cachefiles_preset_object_xattr() 102 dentry = file->f_path.dentry; in cachefiles_set_object_xattr() 163 struct dentry *dentry = file->f_path.dentry; in cachefiles_check_auxdata()
|
| /linux/fs/proc/ |
| H A D | fd.c | 59 real_mount(file->f_path.mnt)->mnt_id, in seq_show() 183 *path = fd_file->f_path; in proc_fd_link() 184 path_get(&fd_file->f_path); in proc_fd_link()
|
| /linux/security/apparmor/ |
| H A D | file.c | 519 &file->f_path, buffer, in __file_path_perm() 533 profile, &file->f_path, in __file_path_perm() 539 profile, &file->f_path, in __file_path_perm() 639 if (unlikely(file->f_path.dentry == aa_null.dentry)) in aa_file_perm() 667 if (path_mediated_fs(file->f_path.dentry)) in aa_file_perm()
|
| /linux/fs/overlayfs/ |
| H A D | readdir.c | 797 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() 858 err = ovl_cache_update(&file->f_path, p, !p->ino); in ovl_iterate_merged() 876 struct dentry *dentry = file->f_path.dentry; in ovl_need_adjust_d_ino() 973 struct dentry *dentry = file->f_path.dentry; in ovl_dir_real_file() 1051 type = ovl_path_real(file->f_path.dentry, &realpath); in ovl_dir_open()
|
| /linux/fs/autofs/ |
| H A D | root.c | 81 struct dentry *dentry = file->f_path.dentry; in autofs_dir_open() 100 if (!path_is_mountpoint(&file->f_path) && autofs_empty(ino)) { in autofs_dir_open() 893 return autofs_ask_umount(filp->f_path.mnt, p); in autofs_root_ioctl_unlocked() 897 return autofs_expire_run(inode->i_sb, filp->f_path.mnt, sbi, p); in autofs_root_ioctl_unlocked() 901 filp->f_path.mnt, sbi, p); in autofs_root_ioctl_unlocked()
|
| /linux/fs/hfsplus/ |
| H A D | ioctl.c | 29 struct dentry *dentry = file->f_path.dentry; in hfsplus_ioctl_bless()
|
| /linux/fs/smb/server/ |
| H A D | vfs.c | 262 fp->filp->f_path.dentry, in ksmbd_vfs_stream_read() 410 fp->filp->f_path.dentry, in ksmbd_vfs_stream_write() 436 &fp->filp->f_path, in ksmbd_vfs_stream_write() 687 const struct path *old_path = &old_fp->filp->f_path; in ksmbd_vfs_rename() 807 err = vfs_truncate(&filp->f_path, size); in ksmbd_vfs_truncate() 1204 struct dentry *dir, *dentry = filp->f_path.dentry; in ksmbd_vfs_unlink() 1208 err = mnt_want_write(filp->f_path.mnt); in ksmbd_vfs_unlink() 1228 mnt_drop_write(filp->f_path.mnt); in ksmbd_vfs_unlink() 2069 src_fp->filp->f_path.dentry, in ksmbd_vfs_copy_file_ranges() 2300 rc = vfs_fileattr_get(fp->filp->f_path.dentry, &fa); in ksmbd_vfs_get_compression() [all …]
|
| /linux/security/integrity/ima/ |
| H A D | ima_main.c | 119 *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() 194 result = vfs_getattr_nosec(&file->f_path, &stat, STATX_CHANGE_COOKIE, in ima_detect_file_change() 436 pathname = ima_d_path(&file->f_path, &pathbuf, filename); in process_measurement() 580 pathname = ima_d_path(&file->f_path, &pathbuf, filename); in ima_file_mprotect()
|