Lines Matching refs:filename
398 static long do_faccessat(int dfd, const char __user *filename, int mode, int flags) in do_faccessat() argument
424 res = user_path_at(dfd, filename, lookup_flags, &path); in do_faccessat()
470 SYSCALL_DEFINE3(faccessat, int, dfd, const char __user *, filename, int, mode) in SYSCALL_DEFINE3() argument
472 return do_faccessat(dfd, filename, mode, 0); in SYSCALL_DEFINE3()
475 SYSCALL_DEFINE4(faccessat2, int, dfd, const char __user *, filename, int, mode, in SYSCALL_DEFINE4() argument
478 return do_faccessat(dfd, filename, mode, flags); in SYSCALL_DEFINE4()
481 SYSCALL_DEFINE2(access, const char __user *, filename, int, mode) in SYSCALL_DEFINE2() argument
483 return do_faccessat(AT_FDCWD, filename, mode, 0); in SYSCALL_DEFINE2()
486 SYSCALL_DEFINE1(chdir, const char __user *, filename) in SYSCALL_DEFINE1() argument
492 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); in SYSCALL_DEFINE1()
534 SYSCALL_DEFINE1(chroot, const char __user *, filename) in SYSCALL_DEFINE1() argument
540 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); in SYSCALL_DEFINE1()
614 static int do_fchmodat(int dfd, const char __user *filename, umode_t mode) in do_fchmodat() argument
620 error = user_path_at(dfd, filename, lookup_flags, &path); in do_fchmodat()
632 SYSCALL_DEFINE3(fchmodat, int, dfd, const char __user *, filename, in SYSCALL_DEFINE3() argument
635 return do_fchmodat(dfd, filename, mode); in SYSCALL_DEFINE3()
638 SYSCALL_DEFINE2(chmod, const char __user *, filename, umode_t, mode) in SYSCALL_DEFINE2() argument
640 return do_fchmodat(AT_FDCWD, filename, mode); in SYSCALL_DEFINE2()
685 int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, in do_fchownat() argument
699 error = user_path_at(dfd, filename, lookup_flags, &path); in do_fchownat()
717 SYSCALL_DEFINE5(fchownat, int, dfd, const char __user *, filename, uid_t, user, in SYSCALL_DEFINE5() argument
720 return do_fchownat(dfd, filename, user, group, flag); in SYSCALL_DEFINE5()
723 SYSCALL_DEFINE3(chown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
725 return do_fchownat(AT_FDCWD, filename, user, group, 0); in SYSCALL_DEFINE3()
728 SYSCALL_DEFINE3(lchown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
730 return do_fchownat(AT_FDCWD, filename, user, group, in SYSCALL_DEFINE3()
1135 struct file *file_open_name(struct filename *name, int flags, umode_t mode) in file_open_name()
1156 struct file *filp_open(const char *filename, int flags, umode_t mode) in filp_open() argument
1158 struct filename *name = getname_kernel(filename); in filp_open()
1170 struct file *filp_open_block(const char *filename, int flags, umode_t mode) in filp_open_block() argument
1174 file = filp_open(filename, flags, mode); in filp_open_block()
1190 const char *filename, int flags, umode_t mode) in file_open_root() argument
1197 return do_file_open_root(dentry, mnt, filename, &op); in file_open_root()
1201 static long do_sys_openat2(int dfd, const char __user *filename, in do_sys_openat2() argument
1206 struct filename *tmp; in do_sys_openat2()
1211 tmp = getname(filename); in do_sys_openat2()
1230 long do_sys_open(int dfd, const char __user *filename, int flags, umode_t mode) in do_sys_open() argument
1233 return do_sys_openat2(dfd, filename, &how); in do_sys_open()
1237 SYSCALL_DEFINE3(open, const char __user *, filename, int, flags, umode_t, mode) in SYSCALL_DEFINE3() argument
1241 return do_sys_open(AT_FDCWD, filename, flags, mode); in SYSCALL_DEFINE3()
1244 SYSCALL_DEFINE4(openat, int, dfd, const char __user *, filename, int, flags, in SYSCALL_DEFINE4() argument
1249 return do_sys_open(dfd, filename, flags, mode); in SYSCALL_DEFINE4()
1252 SYSCALL_DEFINE4(openat2, int, dfd, const char __user *, filename, in SYSCALL_DEFINE4() argument
1272 return do_sys_openat2(dfd, filename, &tmp); in SYSCALL_DEFINE4()
1280 COMPAT_SYSCALL_DEFINE3(open, const char __user *, filename, int, flags, umode_t, mode) in COMPAT_SYSCALL_DEFINE3() argument
1282 return do_sys_open(AT_FDCWD, filename, flags, mode); in COMPAT_SYSCALL_DEFINE3()
1289 COMPAT_SYSCALL_DEFINE4(openat, int, dfd, const char __user *, filename, int, flags, umode_t, mode) in COMPAT_SYSCALL_DEFINE4() argument
1291 return do_sys_open(dfd, filename, flags, mode); in COMPAT_SYSCALL_DEFINE4()