Lines Matching refs:filename
128 struct filename *tmp = getname(library); in SYSCALL_DEFINE1()
894 static struct file *do_open_execat(int fd, struct filename *name, int flags) in do_open_execat()
943 struct filename *filename = getname_kernel(name); in open_exec() local
944 struct file *f = ERR_CAST(filename); in open_exec()
946 if (!IS_ERR(filename)) { in open_exec()
947 f = do_open_execat(AT_FDCWD, filename, 0); in open_exec()
948 putname(filename); in open_exec()
1343 __set_task_comm(me, kbasename(bprm->filename), true); in begin_new_exec()
1478 if (bprm->interp != bprm->filename) in free_bprm()
1484 static struct linux_binprm *alloc_bprm(int fd, struct filename *filename) in alloc_bprm() argument
1491 if (fd == AT_FDCWD || filename->name[0] == '/') { in alloc_bprm()
1492 bprm->filename = filename->name; in alloc_bprm()
1494 if (filename->name[0] == '\0') in alloc_bprm()
1498 fd, filename->name); in alloc_bprm()
1502 bprm->filename = bprm->fdpath; in alloc_bprm()
1504 bprm->interp = bprm->filename; in alloc_bprm()
1520 if (bprm->interp != bprm->filename) in bprm_change_interp()
1776 int fd, struct filename *filename, int flags) in bprm_execve() argument
1798 file = do_open_execat(fd, filename, flags); in bprm_execve()
1855 static int do_execveat_common(int fd, struct filename *filename, in do_execveat_common() argument
1863 if (IS_ERR(filename)) in do_execveat_common()
1864 return PTR_ERR(filename); in do_execveat_common()
1882 bprm = alloc_bprm(fd, filename); in do_execveat_common()
1902 retval = copy_string_kernel(bprm->filename, bprm); in do_execveat_common()
1915 retval = bprm_execve(bprm, fd, filename, flags); in do_execveat_common()
1920 putname(filename); in do_execveat_common()
1927 struct filename *filename; in kernel_execve() local
1932 filename = getname_kernel(kernel_filename); in kernel_execve()
1933 if (IS_ERR(filename)) in kernel_execve()
1934 return PTR_ERR(filename); in kernel_execve()
1936 bprm = alloc_bprm(fd, filename); in kernel_execve()
1956 retval = copy_string_kernel(bprm->filename, bprm); in kernel_execve()
1969 retval = bprm_execve(bprm, fd, filename, 0); in kernel_execve()
1973 putname(filename); in kernel_execve()
1977 static int do_execve(struct filename *filename, in do_execve() argument
1983 return do_execveat_common(AT_FDCWD, filename, argv, envp, 0); in do_execve()
1986 static int do_execveat(int fd, struct filename *filename, in do_execveat() argument
1994 return do_execveat_common(fd, filename, argv, envp, flags); in do_execveat()
1998 static int compat_do_execve(struct filename *filename, in compat_do_execve() argument
2010 return do_execveat_common(AT_FDCWD, filename, argv, envp, 0); in compat_do_execve()
2013 static int compat_do_execveat(int fd, struct filename *filename, in compat_do_execveat() argument
2026 return do_execveat_common(fd, filename, argv, envp, flags); in compat_do_execveat()
2055 const char __user *, filename, in SYSCALL_DEFINE3() argument
2059 return do_execve(getname(filename), argv, envp); in SYSCALL_DEFINE3()
2063 int, fd, const char __user *, filename, in SYSCALL_DEFINE5() argument
2071 getname_flags(filename, lookup_flags, NULL), in SYSCALL_DEFINE5()
2076 COMPAT_SYSCALL_DEFINE3(execve, const char __user *, filename, in COMPAT_SYSCALL_DEFINE3() argument
2080 return compat_do_execve(getname(filename), argv, envp); in COMPAT_SYSCALL_DEFINE3()
2084 const char __user *, filename, in COMPAT_SYSCALL_DEFINE5() argument
2092 getname_flags(filename, lookup_flags, NULL), in COMPAT_SYSCALL_DEFINE5()