Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 25 of 30) sorted by relevance

12

/fs/
Dutimes.c27 SYSCALL_DEFINE2(utime, char __user *, filename, struct utimbuf __user *, times) in SYSCALL_DEFINE2() argument
38 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); in SYSCALL_DEFINE2()
122 long do_utimes(int dfd, const char __user *filename, struct timespec *times, in do_utimes() argument
135 if (filename == NULL && dfd != AT_FDCWD) { in do_utimes()
155 error = user_path_at(dfd, filename, lookup_flags, &path); in do_utimes()
171 SYSCALL_DEFINE4(utimensat, int, dfd, const char __user *, filename, in SYSCALL_DEFINE4() argument
186 return do_utimes(dfd, filename, utimes ? tstimes : NULL, flags); in SYSCALL_DEFINE4()
189 SYSCALL_DEFINE3(futimesat, int, dfd, const char __user *, filename, in SYSCALL_DEFINE3() argument
214 return do_utimes(dfd, filename, utimes ? tstimes : NULL, 0); in SYSCALL_DEFINE3()
217 SYSCALL_DEFINE2(utimes, char __user *, filename, in SYSCALL_DEFINE2() argument
[all …]
Dexec.c119 struct filename *tmp = getname(library); in SYSCALL_DEFINE1()
826 static struct file *do_open_execat(int fd, struct filename *name, int flags) in do_open_execat()
872 struct filename *filename = getname_kernel(name); in open_exec() local
873 struct file *f = ERR_CAST(filename); in open_exec()
875 if (!IS_ERR(filename)) { in open_exec()
876 f = do_open_execat(AT_FDCWD, filename, 0); in open_exec()
877 putname(filename); in open_exec()
1338 __set_task_comm(current, kbasename(bprm->filename), true); in setup_new_exec()
1393 if (bprm->interp != bprm->filename) in free_bprm()
1401 if (bprm->interp != bprm->filename) in bprm_change_interp()
[all …]
Dopen.c363 SYSCALL_DEFINE3(faccessat, int, dfd, const char __user *, filename, int, mode) in SYSCALL_DEFINE3() argument
395 res = user_path_at(dfd, filename, lookup_flags, &path); in SYSCALL_DEFINE3()
441 SYSCALL_DEFINE2(access, const char __user *, filename, int, mode) in SYSCALL_DEFINE2() argument
443 return sys_faccessat(AT_FDCWD, filename, mode); in SYSCALL_DEFINE2()
446 SYSCALL_DEFINE1(chdir, const char __user *, filename) in SYSCALL_DEFINE1() argument
452 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); in SYSCALL_DEFINE1()
499 SYSCALL_DEFINE1(chroot, const char __user *, filename) in SYSCALL_DEFINE1() argument
505 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); in SYSCALL_DEFINE1()
574 SYSCALL_DEFINE3(fchmodat, int, dfd, const char __user *, filename, umode_t, mode) in SYSCALL_DEFINE3() argument
580 error = user_path_at(dfd, filename, lookup_flags, &path); in SYSCALL_DEFINE3()
[all …]
Dstat.c90 int vfs_fstatat(int dfd, const char __user *filename, struct kstat *stat, in vfs_fstatat() argument
106 error = user_path_at(dfd, filename, lookup_flags, &path); in vfs_fstatat()
177 SYSCALL_DEFINE2(stat, const char __user *, filename, in SYSCALL_DEFINE2() argument
183 error = vfs_stat(filename, &stat); in SYSCALL_DEFINE2()
190 SYSCALL_DEFINE2(lstat, const char __user *, filename, in SYSCALL_DEFINE2() argument
196 error = vfs_lstat(filename, &stat); in SYSCALL_DEFINE2()
266 SYSCALL_DEFINE2(newstat, const char __user *, filename, in SYSCALL_DEFINE2() argument
270 int error = vfs_stat(filename, &stat); in SYSCALL_DEFINE2()
277 SYSCALL_DEFINE2(newlstat, const char __user *, filename, in SYSCALL_DEFINE2() argument
283 error = vfs_lstat(filename, &stat); in SYSCALL_DEFINE2()
[all …]
Dnamei.c124 #define EMBEDDED_NAME_MAX (PATH_MAX - offsetof(struct filename, iname))
126 struct filename *
127 getname_flags(const char __user *filename, int flags, int *empty) in getname_flags() argument
129 struct filename *result; in getname_flags()
133 result = audit_reusename(filename); in getname_flags()
148 len = strncpy_from_user(kname, filename, EMBEDDED_NAME_MAX); in getname_flags()
161 const size_t size = offsetof(struct filename, iname[1]); in getname_flags()
175 len = strncpy_from_user(kname, filename, PATH_MAX); in getname_flags()
199 result->uptr = filename; in getname_flags()
205 struct filename *
[all …]
Dcompat.c61 COMPAT_SYSCALL_DEFINE2(utime, const char __user *, filename, in COMPAT_SYSCALL_DEFINE2() argument
73 return do_utimes(AT_FDCWD, filename, t ? tv : NULL, 0); in COMPAT_SYSCALL_DEFINE2()
76 COMPAT_SYSCALL_DEFINE4(utimensat, unsigned int, dfd, const char __user *, filename, struct compat_t… in COMPAT_SYSCALL_DEFINE4() argument
88 return do_utimes(dfd, filename, t ? tv : NULL, flags); in COMPAT_SYSCALL_DEFINE4()
91 COMPAT_SYSCALL_DEFINE3(futimesat, unsigned int, dfd, const char __user *, filename, struct compat_t… in COMPAT_SYSCALL_DEFINE3() argument
107 return do_utimes(dfd, filename, t ? tv : NULL, 0); in COMPAT_SYSCALL_DEFINE3()
110 COMPAT_SYSCALL_DEFINE2(utimes, const char __user *, filename, struct compat_timeval __user *, t) in COMPAT_SYSCALL_DEFINE2() argument
112 return compat_sys_futimesat(AT_FDCWD, filename, t); in COMPAT_SYSCALL_DEFINE2()
148 COMPAT_SYSCALL_DEFINE2(newstat, const char __user *, filename, in COMPAT_SYSCALL_DEFINE2() argument
154 error = vfs_stat(filename, &stat); in COMPAT_SYSCALL_DEFINE2()
[all …]
Dbinfmt_flat.c463 pr_info("Loading file: %s\n", bprm->filename); in load_flat_file()
729 id ? "Lib" : "Load", bprm->filename, in load_flat_file()
872 bprm.filename = buf; in load_flat_shared_library()
873 bprm.file = open_exec(bprm.filename); in load_flat_shared_library()
Dbinfmt_em86.c70 retval = copy_strings_kernel(1, &bprm->filename, bprm); in load_em86()
Dinternal.h108 extern struct file *do_filp_open(int dfd, struct filename *pathname,
Dbinfmt_elf.c1589 const char *filename; in fill_files_note() local
1594 filename = file_path(file, name_curpos, remaining); in fill_files_note()
1595 if (IS_ERR(filename)) { in fill_files_note()
1596 if (PTR_ERR(filename) == -ENAMETOOLONG) { in fill_files_note()
1606 n = (name_curpos + remaining) - filename; in fill_files_note()
1607 remaining = filename - name_curpos; in fill_files_note()
1608 memmove(name_curpos, filename, n); in fill_files_note()
Dfilesystems.c128 struct filename *name; in fs_index()
/fs/ecryptfs/
Dcrypto.c1498 ecryptfs_encrypt_filename(struct ecryptfs_filename *filename, in ecryptfs_encrypt_filename() argument
1503 filename->encrypted_filename = NULL; in ecryptfs_encrypt_filename()
1504 filename->encrypted_filename_size = 0; in ecryptfs_encrypt_filename()
1512 &filename->encrypted_filename_size, in ecryptfs_encrypt_filename()
1514 filename->filename_size); in ecryptfs_encrypt_filename()
1519 filename->encrypted_filename_size = 0; in ecryptfs_encrypt_filename()
1522 filename->encrypted_filename = in ecryptfs_encrypt_filename()
1523 kmalloc(filename->encrypted_filename_size, GFP_KERNEL); in ecryptfs_encrypt_filename()
1524 if (!filename->encrypted_filename) { in ecryptfs_encrypt_filename()
1527 filename->encrypted_filename_size); in ecryptfs_encrypt_filename()
[all …]
Decryptfs_kernel.h208 char *filename; member
717 char *filename, size_t filename_size);
719 ecryptfs_parse_tag_70_packet(char **filename, size_t *filename_size,
Dkeystore.c635 char *filename, size_t filename_size) in ecryptfs_write_tag_70_packet() argument
813 memcpy(&s->block_aligned_filename[s->num_rand_bytes], filename, in ecryptfs_write_tag_70_packet()
915 ecryptfs_parse_tag_70_packet(char **filename, size_t *filename_size, in ecryptfs_parse_tag_70_packet() argument
926 (*filename) = NULL; in ecryptfs_parse_tag_70_packet()
1098 (*filename) = kmalloc(((*filename_size) + 1), GFP_KERNEL); in ecryptfs_parse_tag_70_packet()
1099 if (!(*filename)) { in ecryptfs_parse_tag_70_packet()
1106 memcpy((*filename), &s->decrypted_filename[s->i], (*filename_size)); in ecryptfs_parse_tag_70_packet()
1107 (*filename)[(*filename_size)] = '\0'; in ecryptfs_parse_tag_70_packet()
1116 (*filename) = NULL; in ecryptfs_parse_tag_70_packet()
/fs/gfs2/
Ddir.h30 const struct qstr *filename,
32 extern int gfs2_dir_check(struct inode *dir, const struct qstr *filename,
34 extern int gfs2_dir_add(struct inode *inode, const struct qstr *filename,
45 extern int gfs2_dir_mvino(struct gfs2_inode *dip, const struct qstr *filename,
51 const struct qstr *filename,
Dsuper.h35 extern int gfs2_lookup_in_master_dir(struct gfs2_sbd *sdp, char *filename,
/fs/xfs/
Dxfs_error.c131 const char *filename, in xfs_error_report() argument
138 tag, linenum, filename, ra); in xfs_error_report()
150 const char *filename, in xfs_corruption_error() argument
156 xfs_error_report(tag, level, mp, filename, linenum, ra); in xfs_corruption_error()
Dxfs_error.h24 const char *filename, int linenum, void *ra);
26 struct xfs_mount *mp, void *p, const char *filename,
/fs/cachefiles/
Dnamei.c846 char *filename) in cachefiles_check_active() argument
861 victim = lookup_one_len(filename, dir, strlen(filename)); in cachefiles_check_active()
932 char *filename) in cachefiles_cull() argument
937 _enter(",%pd/,%s", dir, filename); in cachefiles_cull()
939 victim = cachefiles_check_active(cache, dir, filename); in cachefiles_cull()
992 char *filename) in cachefiles_check_in_use() argument
999 victim = cachefiles_check_active(cache, dir, filename); in cachefiles_check_in_use()
Dinternal.h176 char *filename);
179 struct dentry *dir, char *filename);
/fs/nfs/
Ddir.c487 struct qstr filename = QSTR_INIT(entry->name, entry->len); in nfs_prime_dcache() local
499 if (filename.len == 0) in nfs_prime_dcache()
502 if (strnlen(filename.name, filename.len) != filename.len) in nfs_prime_dcache()
505 if (strnchr(filename.name, filename.len, '/')) in nfs_prime_dcache()
507 if (filename.name[0] == '.') { in nfs_prime_dcache()
508 if (filename.len == 1) in nfs_prime_dcache()
510 if (filename.len == 2 && filename.name[1] == '.') in nfs_prime_dcache()
513 filename.hash = full_name_hash(parent, filename.name, filename.len); in nfs_prime_dcache()
515 dentry = d_lookup(parent, &filename); in nfs_prime_dcache()
518 dentry = d_alloc_parallel(parent, &filename, &wq); in nfs_prime_dcache()
/fs/notify/fanotify/
Dfanotify_user.c462 static int fanotify_find_path(int dfd, const char __user *filename, in fanotify_find_path() argument
468 dfd, filename, flags); in fanotify_find_path()
470 if (filename == NULL) { in fanotify_find_path()
495 ret = user_path_at(dfd, filename, lookup_flags, path); in fanotify_find_path()
/fs/f2fs/
Dinline.c405 memcpy(dst.filename, src.filename, src.max * F2FS_SLOT_LEN); in f2fs_move_inline_dirents()
451 new_name.name = d.filename[bit_pos]; in f2fs_add_inline_entries()
Ddir.c132 fscrypt_match_name(fname, d->filename[bit_pos], in find_target_dentry()
482 memcpy(d->filename[bit_pos], name->name, name->len); in f2fs_update_dentry()
811 de_name.name = d->filename[bit_pos]; in f2fs_fill_dentries()
/fs/cramfs/
DREADME33 allows cramfs_lookup to return more quickly when a filename does not
167 by filename, so the expansion doesn't even have to be a multiple of 4

12