/fs/ |
D | utimes.c | 88 long do_utimes(int dfd, const char __user *filename, struct timespec64 *times, in do_utimes() argument 101 if (filename == NULL && dfd != AT_FDCWD) { in do_utimes() 121 error = user_path_at(dfd, filename, lookup_flags, &path); in do_utimes() 137 SYSCALL_DEFINE4(utimensat, int, dfd, const char __user *, filename, in SYSCALL_DEFINE4() argument 153 return do_utimes(dfd, filename, utimes ? tstimes : NULL, flags); in SYSCALL_DEFINE4() 163 static long do_futimesat(int dfd, const char __user *filename, in do_futimesat() argument 188 return do_utimes(dfd, filename, utimes ? tstimes : NULL, 0); in do_futimesat() 192 SYSCALL_DEFINE3(futimesat, int, dfd, const char __user *, filename, in SYSCALL_DEFINE3() argument 195 return do_futimesat(dfd, filename, utimes); in SYSCALL_DEFINE3() 198 SYSCALL_DEFINE2(utimes, char __user *, filename, in SYSCALL_DEFINE2() argument [all …]
|
D | open.c | 357 long do_faccessat(int dfd, const char __user *filename, int mode) in do_faccessat() argument 408 res = user_path_at(dfd, filename, lookup_flags, &path); in do_faccessat() 454 SYSCALL_DEFINE3(faccessat, int, dfd, const char __user *, filename, int, mode) in SYSCALL_DEFINE3() argument 456 return do_faccessat(dfd, filename, mode); in SYSCALL_DEFINE3() 459 SYSCALL_DEFINE2(access, const char __user *, filename, int, mode) in SYSCALL_DEFINE2() argument 461 return do_faccessat(AT_FDCWD, filename, mode); in SYSCALL_DEFINE2() 464 int ksys_chdir(const char __user *filename) in ksys_chdir() argument 470 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); in ksys_chdir() 490 SYSCALL_DEFINE1(chdir, const char __user *, filename) in SYSCALL_DEFINE1() argument 492 return ksys_chdir(filename); in SYSCALL_DEFINE1() [all …]
|
D | exec.c | 125 struct filename *tmp = getname(library); in SYSCALL_DEFINE1() 839 static struct file *do_open_execat(int fd, struct filename *name, int flags) in do_open_execat() 885 struct filename *filename = getname_kernel(name); in open_exec() local 886 struct file *f = ERR_CAST(filename); in open_exec() 888 if (!IS_ERR(filename)) { in open_exec() 889 f = do_open_execat(AT_FDCWD, filename, 0); in open_exec() 890 putname(filename); in open_exec() 1376 __set_task_comm(current, kbasename(bprm->filename), true); in setup_new_exec() 1432 if (bprm->interp != bprm->filename) in free_bprm() 1440 if (bprm->interp != bprm->filename) in bprm_change_interp() [all …]
|
D | stat.c | 168 int vfs_statx(int dfd, const char __user *filename, int flags, in vfs_statx() argument 187 error = user_path_at(dfd, filename, lookup_flags, &path); in vfs_statx() 246 SYSCALL_DEFINE2(stat, const char __user *, filename, in SYSCALL_DEFINE2() argument 252 error = vfs_stat(filename, &stat); in SYSCALL_DEFINE2() 259 SYSCALL_DEFINE2(lstat, const char __user *, filename, in SYSCALL_DEFINE2() argument 265 error = vfs_lstat(filename, &stat); in SYSCALL_DEFINE2() 337 SYSCALL_DEFINE2(newstat, const char __user *, filename, in SYSCALL_DEFINE2() argument 341 int error = vfs_stat(filename, &stat); in SYSCALL_DEFINE2() 348 SYSCALL_DEFINE2(newlstat, const char __user *, filename, in SYSCALL_DEFINE2() argument 354 error = vfs_lstat(filename, &stat); in SYSCALL_DEFINE2() [all …]
|
D | internal.h | 62 extern int filename_lookup(int dfd, struct filename *name, unsigned flags, 65 long do_mknodat(int dfd, const char __user *filename, umode_t mode, 69 long do_unlinkat(int dfd, struct filename *name); 121 extern struct file *do_filp_open(int dfd, struct filename *pathname, 127 long do_faccessat(int dfd, const char __user *filename, int mode); 128 int do_fchmodat(int dfd, const char __user *filename, umode_t mode); 129 int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group,
|
D | namei.c | 128 #define EMBEDDED_NAME_MAX (PATH_MAX - offsetof(struct filename, iname)) 130 struct filename * 131 getname_flags(const char __user *filename, int flags, int *empty) in getname_flags() argument 133 struct filename *result; in getname_flags() 137 result = audit_reusename(filename); in getname_flags() 152 len = strncpy_from_user(kname, filename, EMBEDDED_NAME_MAX); in getname_flags() 165 const size_t size = offsetof(struct filename, iname[1]); in getname_flags() 179 len = strncpy_from_user(kname, filename, PATH_MAX); in getname_flags() 203 result->uptr = filename; in getname_flags() 209 struct filename * [all …]
|
D | binfmt_flat.c | 468 pr_info("Loading file: %s\n", bprm->filename); in load_flat_file() 741 id ? "Lib" : "Load", bprm->filename, in load_flat_file() 897 bprm.filename = buf; in load_flat_shared_library() 898 bprm.file = open_exec(bprm.filename); in load_flat_shared_library()
|
D | binfmt_em86.c | 71 retval = copy_strings_kernel(1, &bprm->filename, bprm); in load_em86()
|
D | binfmt_elf.c | 1610 const char *filename; in fill_files_note() local 1615 filename = file_path(file, name_curpos, remaining); in fill_files_note() 1616 if (IS_ERR(filename)) { in fill_files_note() 1617 if (PTR_ERR(filename) == -ENAMETOOLONG) { in fill_files_note() 1627 n = (name_curpos + remaining) - filename; in fill_files_note() 1628 remaining = filename - name_curpos; in fill_files_note() 1629 memmove(name_curpos, filename, n); in fill_files_note()
|
D | filesystems.c | 134 struct filename *name; in fs_index()
|
D | fs_parser.c | 258 struct filename *f; in fs_lookup_param()
|
/fs/ecryptfs/ |
D | crypto.c | 1474 ecryptfs_encrypt_filename(struct ecryptfs_filename *filename, in ecryptfs_encrypt_filename() argument 1479 filename->encrypted_filename = NULL; in ecryptfs_encrypt_filename() 1480 filename->encrypted_filename_size = 0; in ecryptfs_encrypt_filename() 1488 &filename->encrypted_filename_size, in ecryptfs_encrypt_filename() 1490 filename->filename_size); in ecryptfs_encrypt_filename() 1495 filename->encrypted_filename_size = 0; in ecryptfs_encrypt_filename() 1498 filename->encrypted_filename = in ecryptfs_encrypt_filename() 1499 kmalloc(filename->encrypted_filename_size, GFP_KERNEL); in ecryptfs_encrypt_filename() 1500 if (!filename->encrypted_filename) { in ecryptfs_encrypt_filename() 1504 remaining_bytes = filename->encrypted_filename_size; in ecryptfs_encrypt_filename() [all …]
|
D | keystore.c | 621 char *filename, size_t filename_size) in ecryptfs_write_tag_70_packet() argument 789 memcpy(&s->block_aligned_filename[s->num_rand_bytes], filename, in ecryptfs_write_tag_70_packet() 891 ecryptfs_parse_tag_70_packet(char **filename, size_t *filename_size, in ecryptfs_parse_tag_70_packet() argument 902 (*filename) = NULL; in ecryptfs_parse_tag_70_packet() 1070 (*filename) = kmalloc(((*filename_size) + 1), GFP_KERNEL); in ecryptfs_parse_tag_70_packet() 1071 if (!(*filename)) { in ecryptfs_parse_tag_70_packet() 1075 memcpy((*filename), &s->decrypted_filename[s->i], (*filename_size)); in ecryptfs_parse_tag_70_packet() 1076 (*filename)[(*filename_size)] = '\0'; in ecryptfs_parse_tag_70_packet() 1085 (*filename) = NULL; in ecryptfs_parse_tag_70_packet()
|
D | ecryptfs_kernel.h | 201 char *filename; member 709 char *filename, size_t filename_size); 711 ecryptfs_parse_tag_70_packet(char **filename, size_t *filename_size,
|
/fs/gfs2/ |
D | dir.h | 27 const struct qstr *filename, 29 extern int gfs2_dir_check(struct inode *dir, const struct qstr *filename, 31 extern int gfs2_dir_add(struct inode *inode, const struct qstr *filename, 41 extern int gfs2_dir_mvino(struct gfs2_inode *dip, const struct qstr *filename, 47 const struct qstr *filename,
|
D | super.h | 30 extern int gfs2_lookup_in_master_dir(struct gfs2_sbd *sdp, char *filename,
|
/fs/xfs/ |
D | xfs_error.c | 314 const char *filename, in xfs_error_report() argument 321 tag, linenum, filename, failaddr); in xfs_error_report() 334 const char *filename, in xfs_corruption_error() argument 340 xfs_error_report(tag, level, mp, filename, linenum, failaddr); in xfs_corruption_error()
|
D | xfs_error.h | 12 const char *filename, int linenum, 16 const char *filename, int linenum,
|
/fs/cachefiles/ |
D | namei.c | 865 char *filename) in cachefiles_check_active() argument 880 victim = lookup_one_len(filename, dir, strlen(filename)); in cachefiles_check_active() 951 char *filename) in cachefiles_cull() argument 956 _enter(",%pd/,%s", dir, filename); in cachefiles_cull() 958 victim = cachefiles_check_active(cache, dir, filename); in cachefiles_cull() 1011 char *filename) in cachefiles_check_in_use() argument 1018 victim = cachefiles_check_active(cache, dir, filename); in cachefiles_check_in_use()
|
D | internal.h | 175 char *filename); 178 struct dentry *dir, char *filename);
|
/fs/nfs/ |
D | dir.c | 447 struct qstr filename = QSTR_INIT(entry->name, entry->len); in nfs_prime_dcache() local 459 if (filename.len == 0) in nfs_prime_dcache() 462 if (strnlen(filename.name, filename.len) != filename.len) in nfs_prime_dcache() 465 if (strnchr(filename.name, filename.len, '/')) in nfs_prime_dcache() 467 if (filename.name[0] == '.') { in nfs_prime_dcache() 468 if (filename.len == 1) in nfs_prime_dcache() 470 if (filename.len == 2 && filename.name[1] == '.') in nfs_prime_dcache() 473 filename.hash = full_name_hash(parent, filename.name, filename.len); in nfs_prime_dcache() 475 dentry = d_lookup(parent, &filename); in nfs_prime_dcache() 478 dentry = d_alloc_parallel(parent, &filename, &wq); in nfs_prime_dcache()
|
/fs/notify/fanotify/ |
D | fanotify_user.c | 530 static int fanotify_find_path(int dfd, const char __user *filename, in fanotify_find_path() argument 537 dfd, filename, flags); in fanotify_find_path() 539 if (filename == NULL) { in fanotify_find_path() 564 ret = user_path_at(dfd, filename, lookup_flags, path); in fanotify_find_path()
|
/fs/f2fs/ |
D | inline.c | 426 memcpy(dst.filename, src.filename, src.max * F2FS_SLOT_LEN); in f2fs_move_inline_dirents() 480 new_name.name = d.filename[bit_pos]; in f2fs_add_inline_entries()
|
D | dir.c | 184 entry.name = d->filename[bit_pos]; in f2fs_match_name() 197 if (fscrypt_match_name(fname, d->filename[bit_pos], in f2fs_match_name() 592 memcpy(d->filename[bit_pos], name->name, name->len); in f2fs_update_dentry() 931 de_name.name = d->filename[bit_pos]; in f2fs_fill_dentries()
|
/fs/cramfs/ |
D | README | 33 allows cramfs_lookup to return more quickly when a filename does not 196 by filename, so the expansion doesn't even have to be a multiple of 4
|