Home
last modified time | relevance | path

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

12

/fs/
Dutimes.c24 SYSCALL_DEFINE2(utime, char __user *, filename, struct utimbuf __user *, times) in SYSCALL_DEFINE2() argument
35 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); in SYSCALL_DEFINE2()
119 long do_utimes(int dfd, const char __user *filename, struct timespec64 *times, in do_utimes() argument
132 if (filename == NULL && dfd != AT_FDCWD) { in do_utimes()
152 error = user_path_at(dfd, filename, lookup_flags, &path); in do_utimes()
168 SYSCALL_DEFINE4(utimensat, int, dfd, const char __user *, filename, in SYSCALL_DEFINE4() argument
184 return do_utimes(dfd, filename, utimes ? tstimes : NULL, flags); in SYSCALL_DEFINE4()
187 SYSCALL_DEFINE3(futimesat, int, dfd, const char __user *, filename, in SYSCALL_DEFINE3() argument
212 return do_utimes(dfd, filename, utimes ? tstimes : NULL, 0); in SYSCALL_DEFINE3()
215 SYSCALL_DEFINE2(utimes, char __user *, filename, in SYSCALL_DEFINE2() argument
[all …]
Dopen.c362 SYSCALL_DEFINE3(faccessat, int, dfd, const char __user *, filename, int, mode) in SYSCALL_DEFINE3() argument
413 res = user_path_at(dfd, filename, lookup_flags, &path); in SYSCALL_DEFINE3()
459 SYSCALL_DEFINE2(access, const char __user *, filename, int, mode) in SYSCALL_DEFINE2() argument
461 return sys_faccessat(AT_FDCWD, filename, mode); in SYSCALL_DEFINE2()
464 SYSCALL_DEFINE1(chdir, const char __user *, filename) in SYSCALL_DEFINE1() argument
470 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); in SYSCALL_DEFINE1()
513 SYSCALL_DEFINE1(chroot, const char __user *, filename) in SYSCALL_DEFINE1() argument
519 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); in SYSCALL_DEFINE1()
588 SYSCALL_DEFINE3(fchmodat, int, dfd, const char __user *, filename, umode_t, mode) in SYSCALL_DEFINE3() argument
594 error = user_path_at(dfd, filename, lookup_flags, &path); in SYSCALL_DEFINE3()
[all …]
Dstat.c166 int vfs_statx(int dfd, const char __user *filename, int flags, in vfs_statx() argument
185 error = user_path_at(dfd, filename, lookup_flags, &path); in vfs_statx()
244 SYSCALL_DEFINE2(stat, const char __user *, filename, in SYSCALL_DEFINE2() argument
250 error = vfs_stat(filename, &stat); in SYSCALL_DEFINE2()
257 SYSCALL_DEFINE2(lstat, const char __user *, filename, in SYSCALL_DEFINE2() argument
263 error = vfs_lstat(filename, &stat); in SYSCALL_DEFINE2()
333 SYSCALL_DEFINE2(newstat, const char __user *, filename, in SYSCALL_DEFINE2() argument
337 int error = vfs_stat(filename, &stat); in SYSCALL_DEFINE2()
344 SYSCALL_DEFINE2(newlstat, const char __user *, filename, in SYSCALL_DEFINE2() argument
350 error = vfs_lstat(filename, &stat); in SYSCALL_DEFINE2()
[all …]
Dexec.c124 struct filename *tmp = getname(library); in SYSCALL_DEFINE1()
831 static struct file *do_open_execat(int fd, struct filename *name, int flags) in do_open_execat()
877 struct filename *filename = getname_kernel(name); in open_exec() local
878 struct file *f = ERR_CAST(filename); in open_exec()
880 if (!IS_ERR(filename)) { in open_exec()
881 f = do_open_execat(AT_FDCWD, filename, 0); in open_exec()
882 putname(filename); in open_exec()
1366 __set_task_comm(current, kbasename(bprm->filename), true); in setup_new_exec()
1412 if (bprm->interp != bprm->filename) in free_bprm()
1420 if (bprm->interp != bprm->filename) in bprm_change_interp()
[all …]
Dnamei.c125 #define EMBEDDED_NAME_MAX (PATH_MAX - offsetof(struct filename, iname))
127 struct filename *
128 getname_flags(const char __user *filename, int flags, int *empty) in getname_flags() argument
130 struct filename *result; in getname_flags()
134 result = audit_reusename(filename); in getname_flags()
149 len = strncpy_from_user(kname, filename, EMBEDDED_NAME_MAX); in getname_flags()
162 const size_t size = offsetof(struct filename, iname[1]); in getname_flags()
176 len = strncpy_from_user(kname, filename, PATH_MAX); in getname_flags()
200 result->uptr = filename; in getname_flags()
206 struct filename *
[all …]
Dbinfmt_flat.c455 pr_info("Loading file: %s\n", bprm->filename); in load_flat_file()
721 id ? "Lib" : "Load", bprm->filename, in load_flat_file()
874 bprm.filename = buf; in load_flat_shared_library()
875 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.h110 extern struct file *do_filp_open(int dfd, struct filename *pathname,
Dbinfmt_elf.c1619 const char *filename; in fill_files_note() local
1624 filename = file_path(file, name_curpos, remaining); in fill_files_note()
1625 if (IS_ERR(filename)) { in fill_files_note()
1626 if (PTR_ERR(filename) == -ENAMETOOLONG) { in fill_files_note()
1636 n = (name_curpos + remaining) - filename; in fill_files_note()
1637 remaining = filename - name_curpos; in fill_files_note()
1638 memmove(name_curpos, filename, n); in fill_files_note()
Dfilesystems.c130 struct filename *name; in fs_index()
/fs/ecryptfs/
Dcrypto.c1504 ecryptfs_encrypt_filename(struct ecryptfs_filename *filename, in ecryptfs_encrypt_filename() argument
1509 filename->encrypted_filename = NULL; in ecryptfs_encrypt_filename()
1510 filename->encrypted_filename_size = 0; in ecryptfs_encrypt_filename()
1518 &filename->encrypted_filename_size, in ecryptfs_encrypt_filename()
1520 filename->filename_size); in ecryptfs_encrypt_filename()
1525 filename->encrypted_filename_size = 0; in ecryptfs_encrypt_filename()
1528 filename->encrypted_filename = in ecryptfs_encrypt_filename()
1529 kmalloc(filename->encrypted_filename_size, GFP_KERNEL); in ecryptfs_encrypt_filename()
1530 if (!filename->encrypted_filename) { in ecryptfs_encrypt_filename()
1533 filename->encrypted_filename_size); in ecryptfs_encrypt_filename()
[all …]
Decryptfs_kernel.h208 char *filename; member
716 char *filename, size_t filename_size);
718 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.c311 const char *filename, in xfs_error_report() argument
318 tag, linenum, filename, ra); in xfs_error_report()
330 const char *filename, in xfs_corruption_error() argument
336 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.c845 char *filename) in cachefiles_check_active() argument
860 victim = lookup_one_len(filename, dir, strlen(filename)); in cachefiles_check_active()
931 char *filename) in cachefiles_cull() argument
936 _enter(",%pd/,%s", dir, filename); in cachefiles_cull()
938 victim = cachefiles_check_active(cache, dir, filename); in cachefiles_cull()
991 char *filename) in cachefiles_check_in_use() argument
998 victim = cachefiles_check_active(cache, dir, filename); in cachefiles_check_in_use()
Dinternal.h177 char *filename);
180 struct dentry *dir, char *filename);
/fs/nfs/
Ddir.c466 struct qstr filename = QSTR_INIT(entry->name, entry->len); in nfs_prime_dcache() local
478 if (filename.len == 0) in nfs_prime_dcache()
481 if (strnlen(filename.name, filename.len) != filename.len) in nfs_prime_dcache()
484 if (strnchr(filename.name, filename.len, '/')) in nfs_prime_dcache()
486 if (filename.name[0] == '.') { in nfs_prime_dcache()
487 if (filename.len == 1) in nfs_prime_dcache()
489 if (filename.len == 2 && filename.name[1] == '.') in nfs_prime_dcache()
492 filename.hash = full_name_hash(parent, filename.name, filename.len); in nfs_prime_dcache()
494 dentry = d_lookup(parent, &filename); in nfs_prime_dcache()
497 dentry = d_alloc_parallel(parent, &filename, &wq); in nfs_prime_dcache()
/fs/notify/fanotify/
Dfanotify_user.c459 static int fanotify_find_path(int dfd, const char __user *filename, in fanotify_find_path() argument
465 dfd, filename, flags); in fanotify_find_path()
467 if (filename == NULL) { in fanotify_find_path()
492 ret = user_path_at(dfd, filename, lookup_flags, path); in fanotify_find_path()
/fs/f2fs/
Dinline.c429 memcpy(dst.filename, src.filename, src.max * F2FS_SLOT_LEN); in f2fs_move_inline_dirents()
475 new_name.name = d.filename[bit_pos]; in f2fs_add_inline_entries()
Ddir.c129 fscrypt_match_name(fname, d->filename[bit_pos], in f2fs_find_target_dentry()
479 memcpy(d->filename[bit_pos], name->name, name->len); in f2fs_update_dentry()
812 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
/fs/ncpfs/
DKconfig70 If you say Y here, every filename on a NetWare server volume using

12