Lines Matching refs:filename

397 static long do_faccessat(int dfd, const char __user *filename, int mode, int flags)  in do_faccessat()  argument
423 res = user_path_at(dfd, filename, lookup_flags, &path); in do_faccessat()
469 SYSCALL_DEFINE3(faccessat, int, dfd, const char __user *, filename, int, mode) in SYSCALL_DEFINE3() argument
471 return do_faccessat(dfd, filename, mode, 0); in SYSCALL_DEFINE3()
474 SYSCALL_DEFINE4(faccessat2, int, dfd, const char __user *, filename, int, mode, in SYSCALL_DEFINE4() argument
477 return do_faccessat(dfd, filename, mode, flags); in SYSCALL_DEFINE4()
480 SYSCALL_DEFINE2(access, const char __user *, filename, int, mode) in SYSCALL_DEFINE2() argument
482 return do_faccessat(AT_FDCWD, filename, mode, 0); in SYSCALL_DEFINE2()
485 SYSCALL_DEFINE1(chdir, const char __user *, filename) in SYSCALL_DEFINE1() argument
491 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); in SYSCALL_DEFINE1()
533 SYSCALL_DEFINE1(chroot, const char __user *, filename) in SYSCALL_DEFINE1() argument
539 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); in SYSCALL_DEFINE1()
613 static int do_fchmodat(int dfd, const char __user *filename, umode_t mode) in do_fchmodat() argument
619 error = user_path_at(dfd, filename, lookup_flags, &path); in do_fchmodat()
631 SYSCALL_DEFINE3(fchmodat, int, dfd, const char __user *, filename, in SYSCALL_DEFINE3() argument
634 return do_fchmodat(dfd, filename, mode); in SYSCALL_DEFINE3()
637 SYSCALL_DEFINE2(chmod, const char __user *, filename, umode_t, mode) in SYSCALL_DEFINE2() argument
639 return do_fchmodat(AT_FDCWD, filename, mode); in SYSCALL_DEFINE2()
684 int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, in do_fchownat() argument
698 error = user_path_at(dfd, filename, lookup_flags, &path); in do_fchownat()
716 SYSCALL_DEFINE5(fchownat, int, dfd, const char __user *, filename, uid_t, user, in SYSCALL_DEFINE5() argument
719 return do_fchownat(dfd, filename, user, group, flag); in SYSCALL_DEFINE5()
722 SYSCALL_DEFINE3(chown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
724 return do_fchownat(AT_FDCWD, filename, user, group, 0); in SYSCALL_DEFINE3()
727 SYSCALL_DEFINE3(lchown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
729 return do_fchownat(AT_FDCWD, filename, user, group, in SYSCALL_DEFINE3()
1106 struct file *file_open_name(struct filename *name, int flags, umode_t mode) in file_open_name()
1127 struct file *filp_open(const char *filename, int flags, umode_t mode) in filp_open() argument
1129 struct filename *name = getname_kernel(filename); in filp_open()
1141 const char *filename, int flags, umode_t mode) in file_open_root() argument
1148 return do_file_open_root(dentry, mnt, filename, &op); in file_open_root()
1152 static long do_sys_openat2(int dfd, const char __user *filename, in do_sys_openat2() argument
1157 struct filename *tmp; in do_sys_openat2()
1162 tmp = getname(filename); in do_sys_openat2()
1181 long do_sys_open(int dfd, const char __user *filename, int flags, umode_t mode) in do_sys_open() argument
1184 return do_sys_openat2(dfd, filename, &how); in do_sys_open()
1188 SYSCALL_DEFINE3(open, const char __user *, filename, int, flags, umode_t, mode) in SYSCALL_DEFINE3() argument
1192 return do_sys_open(AT_FDCWD, filename, flags, mode); in SYSCALL_DEFINE3()
1195 SYSCALL_DEFINE4(openat, int, dfd, const char __user *, filename, int, flags, in SYSCALL_DEFINE4() argument
1200 return do_sys_open(dfd, filename, flags, mode); in SYSCALL_DEFINE4()
1203 SYSCALL_DEFINE4(openat2, int, dfd, const char __user *, filename, in SYSCALL_DEFINE4() argument
1223 return do_sys_openat2(dfd, filename, &tmp); in SYSCALL_DEFINE4()
1231 COMPAT_SYSCALL_DEFINE3(open, const char __user *, filename, int, flags, umode_t, mode) in COMPAT_SYSCALL_DEFINE3() argument
1233 return do_sys_open(AT_FDCWD, filename, flags, mode); in COMPAT_SYSCALL_DEFINE3()
1240 COMPAT_SYSCALL_DEFINE4(openat, int, dfd, const char __user *, filename, int, flags, umode_t, mode) in COMPAT_SYSCALL_DEFINE4() argument
1242 return do_sys_open(dfd, filename, flags, mode); in COMPAT_SYSCALL_DEFINE4()