Lines Matching refs:filename

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()
1716 static int __do_execve_file(int fd, struct filename *filename, in __do_execve_file() argument
1726 if (IS_ERR(filename)) in __do_execve_file()
1727 return PTR_ERR(filename); in __do_execve_file()
1762 file = do_open_execat(fd, filename, flags); in __do_execve_file()
1770 if (!filename) { in __do_execve_file()
1771 bprm->filename = "none"; in __do_execve_file()
1772 } else if (fd == AT_FDCWD || filename->name[0] == '/') { in __do_execve_file()
1773 bprm->filename = filename->name; in __do_execve_file()
1775 if (filename->name[0] == '\0') in __do_execve_file()
1779 fd, filename->name); in __do_execve_file()
1791 bprm->filename = pathbuf; in __do_execve_file()
1793 bprm->interp = bprm->filename; in __do_execve_file()
1807 retval = copy_strings_kernel(1, &bprm->filename, bprm); in __do_execve_file()
1834 if (filename) in __do_execve_file()
1835 putname(filename); in __do_execve_file()
1858 if (filename) in __do_execve_file()
1859 putname(filename); in __do_execve_file()
1863 static int do_execveat_common(int fd, struct filename *filename, in do_execveat_common() argument
1868 return __do_execve_file(fd, filename, argv, envp, flags, NULL); in do_execveat_common()
1879 int do_execve(struct filename *filename, in do_execve() argument
1885 return do_execveat_common(AT_FDCWD, filename, argv, envp, 0); in do_execve()
1888 int do_execveat(int fd, struct filename *filename, in do_execveat() argument
1896 return do_execveat_common(fd, filename, argv, envp, flags); in do_execveat()
1900 static int compat_do_execve(struct filename *filename, in compat_do_execve() argument
1912 return do_execveat_common(AT_FDCWD, filename, argv, envp, 0); in compat_do_execve()
1915 static int compat_do_execveat(int fd, struct filename *filename, in compat_do_execveat() argument
1928 return do_execveat_common(fd, filename, argv, envp, flags); in compat_do_execveat()
1957 const char __user *, filename, in SYSCALL_DEFINE3() argument
1961 return do_execve(getname(filename), argv, envp); in SYSCALL_DEFINE3()
1965 int, fd, const char __user *, filename, in SYSCALL_DEFINE5() argument
1973 getname_flags(filename, lookup_flags, NULL), in SYSCALL_DEFINE5()
1978 COMPAT_SYSCALL_DEFINE3(execve, const char __user *, filename, in COMPAT_SYSCALL_DEFINE3() argument
1982 return compat_do_execve(getname(filename), argv, envp); in COMPAT_SYSCALL_DEFINE3()
1986 const char __user *, filename, in COMPAT_SYSCALL_DEFINE5() argument
1994 getname_flags(filename, lookup_flags, NULL), in COMPAT_SYSCALL_DEFINE5()