Home
last modified time | relevance | path

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

12345

/Linux-v5.4/fs/
Dopen.c174 dentry = f.file->f_path.dentry; in do_sys_ftruncate()
193 error = security_path_truncate(&f.file->f_path); in do_sys_ftruncate()
494 if (!d_can_lookup(f.file->f_path.dentry)) in SYSCALL_DEFINE1()
499 set_fs_pwd(current->fs, &f.file->f_path); in SYSCALL_DEFINE1()
580 err = chmod_common(&f.file->f_path, mode); in ksys_fchmod()
723 error = chown_common(&f.file->f_path, user, group); in ksys_fchown()
743 path_get(&f->f_path); in do_dentry_open()
766 error = __mnt_want_write(f->f_path.mnt); in do_dentry_open()
837 __mnt_drop_write(f->f_path.mnt); in do_dentry_open()
840 path_put(&f->f_path); in do_dentry_open()
[all …]
Dfile_table.c197 file->f_path = *path; in alloc_file()
244 struct file *f = alloc_file(&base->f_path, flags, fops); in alloc_file_clone()
246 path_get(&f->f_path); in alloc_file_clone()
256 struct dentry *dentry = file->f_path.dentry; in __fput()
257 struct vfsmount *mnt = file->f_path.mnt; in __fput()
Dcoredump.c758 if (d_unhashed(cprm.file->f_path.dentry)) in do_coredump()
778 if (do_truncate(cprm.file->f_path.dentry, 0, 0, cprm.file)) in do_coredump()
882 do_truncate(file->f_path.dentry, offset, 0, file); in dump_truncate()
Dxattr.c506 error = setxattr(f.file->f_path.dentry, name, value, size, flags); in SYSCALL_DEFINE5()
596 error = getxattr(f.file->f_path.dentry, name, value, size); in SYSCALL_DEFINE4()
671 error = listxattr(f.file->f_path.dentry, list, size); in SYSCALL_DEFINE3()
738 error = removexattr(f.file->f_path.dentry, name); in SYSCALL_DEFINE2()
/Linux-v5.4/include/linux/
Dfsnotify.h61 const struct path *path = &file->f_path; in fsnotify_perm()
232 const struct path *path = &file->f_path; in fsnotify_access()
248 const struct path *path = &file->f_path; in fsnotify_modify()
264 const struct path *path = &file->f_path; in fsnotify_open()
281 const struct path *path = &file->f_path; in fsnotify_close()
/Linux-v5.4/fs/overlayfs/
Dreaddir.c338 struct dentry *dentry = file->f_path.dentry; in ovl_dir_reset()
671 struct inode *dir = d_inode(file->f_path.dentry); in ovl_is_impure_dir()
687 struct dentry *dir = file->f_path.dentry; in ovl_iterate_real()
700 struct path statpath = file->f_path; in ovl_iterate_real()
712 rdt.cache = ovl_cache_get_impure(&file->f_path); in ovl_iterate_real()
727 struct dentry *dentry = file->f_path.dentry; in ovl_iterate()
764 err = ovl_cache_update_ino(&file->f_path, p); in ovl_iterate()
821 struct dentry *dentry = file->f_path.dentry; in ovl_dir_fsync()
867 ovl_cache_put(od, file->f_path.dentry); in ovl_dir_release()
889 type = ovl_path_real(file->f_path.dentry, &realpath); in ovl_dir_open()
[all …]
/Linux-v5.4/security/tomoyo/
Dtomoyo.c116 &bprm->file->f_path, O_RDONLY); in tomoyo_bprm_check_security()
302 return tomoyo_check_open_permission(tomoyo_domain(), &file->f_path, in tomoyo_file_fcntl()
319 return tomoyo_check_open_permission(tomoyo_domain(), &f->f_path, in tomoyo_file_open()
335 return tomoyo_path_number_perm(TOMOYO_TYPE_IOCTL, &file->f_path, cmd); in tomoyo_file_ioctl()
/Linux-v5.4/drivers/infiniband/hw/hfi1/
Dfault.c149 ret = debugfs_file_get(file->f_path.dentry); in fault_opcodes_write()
199 debugfs_file_put(file->f_path.dentry); in fault_opcodes_write()
218 ret = debugfs_file_get(file->f_path.dentry); in fault_opcodes_read()
234 debugfs_file_put(file->f_path.dentry); in fault_opcodes_read()
/Linux-v5.4/fs/ocfs2/
Dfile.c89 trace_ocfs2_file_open(inode, file, file->f_path.dentry, in ocfs2_file_open()
91 file->f_path.dentry->d_name.len, in ocfs2_file_open()
92 file->f_path.dentry->d_name.name, mode); in ocfs2_file_open()
143 trace_ocfs2_file_release(inode, file, file->f_path.dentry, in ocfs2_file_release()
145 file->f_path.dentry->d_name.len, in ocfs2_file_release()
146 file->f_path.dentry->d_name.name, in ocfs2_file_release()
178 trace_ocfs2_sync_file(inode, file, file->f_path.dentry, in ocfs2_sync_file()
180 file->f_path.dentry->d_name.len, in ocfs2_sync_file()
181 file->f_path.dentry->d_name.name, in ocfs2_sync_file()
1929 if (file && should_remove_suid(file->f_path.dentry)) { in __ocfs2_change_file_space()
[all …]
Dmmap.c169 file->f_path.mnt, &lock_level, 1); in ocfs2_mmap()
/Linux-v5.4/fs/efivarfs/
Dfile.c49 d_delete(file->f_path.dentry); in efivarfs_file_write()
50 dput(file->f_path.dentry); in efivarfs_file_write()
/Linux-v5.4/fs/ecryptfs/
Dfile.c41 path = ecryptfs_dentry_to_lower_path(file->f_path.dentry); in ecryptfs_read_update_atime()
195 struct dentry *ecryptfs_dentry = file->f_path.dentry; in ecryptfs_open()
262 struct dentry *ecryptfs_dentry = file->f_path.dentry; in ecryptfs_dir_open()
Dmmap.c346 rc = ecryptfs_truncate(file->f_path.dentry, in ecryptfs_write_begin()
408 ecryptfs_inode_to_private(ecryptfs_inode)->lower_file->f_path.dentry; in ecryptfs_write_inode_size_to_xattr()
/Linux-v5.4/fs/proc/
Dfd.c58 real_mount(file->f_path.mnt)->mnt_id); in seq_show()
166 *path = fd_file->f_path; in proc_fd_link()
167 path_get(&fd_file->f_path); in proc_fd_link()
/Linux-v5.4/kernel/
Dacct.c109 if (vfs_statfs(&acct->file->f_path, &sbuf)) in check_free_space()
224 internal = mnt_clone_internal(&file->f_path); in acct_on()
237 mnt = file->f_path.mnt; in acct_on()
238 file->f_path.mnt = internal; in acct_on()
/Linux-v5.4/security/apparmor/
Dfile.c531 profile_path_perm(op, profile, &file->f_path, buffer, in __file_path_perm()
544 profile_path_perm(op, profile, &file->f_path, in __file_path_perm()
549 profile_path_perm(op, profile, &file->f_path, in __file_path_perm()
627 if (file->f_path.mnt && path_mediated_fs(file->f_path.dentry)) in aa_file_perm()
/Linux-v5.4/fs/autofs/
Droot.c76 struct dentry *dentry = file->f_path.dentry; in autofs_dir_open()
94 if (!path_is_mountpoint(&file->f_path) && simple_empty(dentry)) { in autofs_dir_open()
906 return autofs_ask_umount(filp->f_path.mnt, p); in autofs_root_ioctl_unlocked()
910 return autofs_expire_run(inode->i_sb, filp->f_path.mnt, sbi, p); in autofs_root_ioctl_unlocked()
914 filp->f_path.mnt, sbi, p); in autofs_root_ioctl_unlocked()
/Linux-v5.4/security/integrity/ima/
Dima_main.c88 *pathname = ima_d_path(&file->f_path, pathbuf, in mmap_violation_check()
136 *pathname = ima_d_path(&file->f_path, pathbuf, filename); in ima_rdwr_violation_check()
331 pathname = ima_d_path(&file->f_path, &pathbuf, filename); in process_measurement()
/Linux-v5.4/fs/fat/
Dfile.c93 err = security_inode_setattr(file->f_path.dentry, &ia); in fat_ioctl_set_attributes()
98 err = fat_setattr(file->f_path.dentry, &ia); in fat_ioctl_set_attributes()
102 fsnotify_change(file->f_path.dentry, ia.ia_valid); in fat_ioctl_set_attributes()
/Linux-v5.4/drivers/oprofile/
Dbuffer_sync.c239 cookie = fast_get_dcookie(&exe_file->f_path); in get_exec_dcookie()
266 cookie = fast_get_dcookie(&vma->vm_file->f_path); in lookup_dcookie()
/Linux-v5.4/sound/soc/sof/
Ddebug.c153 dentry = file->f_path.dentry; in sof_dfsentry_write()
235 dentry = file->f_path.dentry; in sof_dfsentry_read()
/Linux-v5.4/fs/hfsplus/
Dioctl.c29 struct dentry *dentry = file->f_path.dentry; in hfsplus_ioctl_bless()
/Linux-v5.4/arch/powerpc/oprofile/cell/
Dspu_task_sync.c330 app_cookie = fast_get_dcookie(&exe_file->f_path); in get_exec_dcookie_and_offset()
349 *spu_bin_dcookie = fast_get_dcookie(&vma->vm_file->f_path); in get_exec_dcookie_and_offset()
/Linux-v5.4/security/loadpin/
Dloadpin.c142 load_root = file->f_path.mnt->mnt_sb; in loadpin_read_file()
/Linux-v5.4/fs/configfs/
Dfile.c53 struct configfs_dirent *sd = file->f_path.dentry->d_fsdata; in to_frag()
358 struct dentry *dentry = file->f_path.dentry; in __configfs_open_file()

12345