Home
last modified time | relevance | path

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

123

/arch/um/kernel/
Dexec.c77 char *filename; in sys_execve() local
80 filename = getname(file); in sys_execve()
81 error = PTR_ERR(filename); in sys_execve()
82 if (IS_ERR(filename)) goto out; in sys_execve()
83 error = execve1(filename, argv, env); in sys_execve()
84 putname(filename); in sys_execve()
Dinitrd.c65 int load_initrd(char *filename, void *buf, int size) in load_initrd() argument
69 fd = os_open_file(filename, of_read(OPENFLAGS()), 0); in load_initrd()
71 printk(KERN_ERR "Opening '%s' failed - err = %d\n", filename, in load_initrd()
79 filename, -n); in load_initrd()
/arch/parisc/kernel/
Dprocess.c353 char *filename; in sys_execve() local
355 filename = getname((const char __user *) regs->gr[26]); in sys_execve()
356 error = PTR_ERR(filename); in sys_execve()
357 if (IS_ERR(filename)) in sys_execve()
359 error = do_execve(filename, (char __user * __user *) regs->gr[25], in sys_execve()
366 putname(filename); in sys_execve()
372 extern int __execve(const char *filename, char *const argv[],
374 int kernel_execve(const char *filename, char *const argv[], char *const envp[]) in kernel_execve() argument
376 return __execve(filename, argv, envp, current); in kernel_execve()
/arch/parisc/hpux/
Dfs.c37 char *filename; in hpux_execve() local
39 filename = getname((char __user *) regs->gr[26]); in hpux_execve()
40 error = PTR_ERR(filename); in hpux_execve()
41 if (IS_ERR(filename)) in hpux_execve()
44 error = do_execve(filename, (char __user * __user *) regs->gr[25], in hpux_execve()
52 putname(filename); in hpux_execve()
177 long hpux_stat64(char __user *filename, struct hpux_stat64 __user *statbuf) in hpux_stat64() argument
180 int error = vfs_stat(filename, &stat); in hpux_stat64()
199 long hpux_lstat64(char __user *filename, struct hpux_stat64 __user *statbuf) in hpux_lstat64() argument
202 int error = vfs_lstat(filename, &stat); in hpux_lstat64()
/arch/h8300/kernel/
Dprocess.c218 char * filename; in sys_execve() local
222 filename = getname(name); in sys_execve()
223 error = PTR_ERR(filename); in sys_execve()
224 if (IS_ERR(filename)) in sys_execve()
226 error = do_execve(filename, argv, envp, regs); in sys_execve()
227 putname(filename); in sys_execve()
/arch/cris/arch-v32/kernel/
Dprocess.c225 char *filename; in sys_execve() local
227 filename = getname(fname); in sys_execve()
228 error = PTR_ERR(filename); in sys_execve()
230 if (IS_ERR(filename)) in sys_execve()
233 error = do_execve(filename, argv, envp, regs); in sys_execve()
234 putname(filename); in sys_execve()
/arch/mn10300/kernel/
Dprocess.c275 char *filename; in sys_execve() local
280 filename = getname(name); in sys_execve()
281 error = PTR_ERR(filename); in sys_execve()
282 if (!IS_ERR(filename)) { in sys_execve()
283 error = do_execve(filename, argv, envp, __frame); in sys_execve()
287 putname(filename); in sys_execve()
/arch/arm/kernel/
Dsys_arm.c252 char * filename; in sys_execve() local
254 filename = getname(filenamei); in sys_execve()
255 error = PTR_ERR(filename); in sys_execve()
256 if (IS_ERR(filename)) in sys_execve()
258 error = do_execve(filename, argv, envp, regs); in sys_execve()
259 putname(filename); in sys_execve()
264 int kernel_execve(const char *filename, char *const argv[], char *const envp[]) in kernel_execve() argument
270 ret = do_execve((char *)filename, (char __user * __user *)argv, in kernel_execve()
/arch/cris/arch-v10/kernel/
Dprocess.c212 char *filename; in sys_execve() local
214 filename = getname(fname); in sys_execve()
215 error = PTR_ERR(filename); in sys_execve()
217 if (IS_ERR(filename)) in sys_execve()
219 error = do_execve(filename, argv, envp, regs); in sys_execve()
220 putname(filename); in sys_execve()
Dtraps.c125 if (__get_user(c, f.filename)) in handle_BUG()
126 f.filename = "<bad filename>"; in handle_BUG()
128 printk("kernel BUG at %s:%d!\n", f.filename, f.line); in handle_BUG()
/arch/sh/kernel/
Dsys_sh64.c37 int kernel_execve(const char *filename, char *const argv[], char *const envp[]) in kernel_execve() argument
40 register unsigned long __sc2 __asm__ ("r2") = (unsigned long) filename; in kernel_execve()
Dprocess_32.c349 char *filename; in sys_execve() local
351 filename = getname(ufilename); in sys_execve()
352 error = PTR_ERR(filename); in sys_execve()
353 if (IS_ERR(filename)) in sys_execve()
356 error = do_execve(filename, uargv, uenvp, regs); in sys_execve()
362 putname(filename); in sys_execve()
/arch/m32r/kernel/
Dprocess.c297 char *filename; in sys_execve() local
299 filename = getname(ufilename); in sys_execve()
300 error = PTR_ERR(filename); in sys_execve()
301 if (IS_ERR(filename)) in sys_execve()
304 error = do_execve(filename, uargv, uenvp, &regs); in sys_execve()
310 putname(filename); in sys_execve()
/arch/xtensa/kernel/
Dprocess.c327 char * filename; in xtensa_execve() local
329 filename = getname(name); in xtensa_execve()
330 error = PTR_ERR(filename); in xtensa_execve()
331 if (IS_ERR(filename)) in xtensa_execve()
333 error = do_execve(filename, argv, envp, regs); in xtensa_execve()
339 putname(filename); in xtensa_execve()
/arch/m68k/kernel/
Dprocess.c321 char * filename; in sys_execve() local
325 filename = getname(name); in sys_execve()
326 error = PTR_ERR(filename); in sys_execve()
327 if (IS_ERR(filename)) in sys_execve()
329 error = do_execve(filename, argv, envp, regs); in sys_execve()
330 putname(filename); in sys_execve()
/arch/frv/kernel/
Dprocess.c260 char * filename; in sys_execve() local
263 filename = getname(name); in sys_execve()
264 error = PTR_ERR(filename); in sys_execve()
265 if (IS_ERR(filename)) in sys_execve()
267 error = do_execve(filename, argv, envp, __frame); in sys_execve()
268 putname(filename); in sys_execve()
/arch/s390/kernel/
Dprocess.c285 char *filename; in SYSCALL_DEFINE0() local
289 filename = getname((char __user *) regs->orig_gpr2); in SYSCALL_DEFINE0()
290 if (IS_ERR(filename)) { in SYSCALL_DEFINE0()
291 result = PTR_ERR(filename); in SYSCALL_DEFINE0()
294 rc = do_execve(filename, (char __user * __user *) regs->gprs[3], in SYSCALL_DEFINE0()
303 putname(filename); in SYSCALL_DEFINE0()
Dcompat_linux.c106 asmlinkage long sys32_chown16(const char __user * filename, u16 user, u16 group) in sys32_chown16() argument
108 return sys_chown(filename, low2highuid(user), low2highgid(group)); in sys32_chown16()
111 asmlinkage long sys32_lchown16(const char __user * filename, u16 user, u16 group) in sys32_lchown16() argument
113 return sys_lchown(filename, low2highuid(user), low2highgid(group)); in sys32_lchown16()
449 char *filename; in sys32_execve() local
453 filename = getname(compat_ptr(regs->orig_gpr2)); in sys32_execve()
454 if (IS_ERR(filename)) { in sys32_execve()
455 result = PTR_ERR(filename); in sys32_execve()
458 rc = compat_do_execve(filename, compat_ptr(regs->gprs[3]), in sys32_execve()
471 putname(filename); in sys32_execve()
[all …]
/arch/blackfin/kernel/
Dprocess.c220 char *filename; in sys_execve() local
224 filename = getname(name); in sys_execve()
225 error = PTR_ERR(filename); in sys_execve()
226 if (IS_ERR(filename)) in sys_execve()
228 error = do_execve(filename, argv, envp, regs); in sys_execve()
229 putname(filename); in sys_execve()
/arch/mips/kernel/
Dsyscall.c226 char * filename; in sys_execve() local
228 filename = getname((char __user *) (long)regs.regs[4]); in sys_execve()
229 error = PTR_ERR(filename); in sys_execve()
230 if (IS_ERR(filename)) in sys_execve()
232 error = do_execve(filename, (char __user *__user *) (long)regs.regs[5], in sys_execve()
234 putname(filename); in sys_execve()
432 int kernel_execve(const char *filename, char *const argv[], char *const envp[]) in kernel_execve() argument
434 register unsigned long __a0 asm("$4") = (unsigned long) filename; in kernel_execve()
/arch/sparc/kernel/
Dsys_sparc32.c172 asmlinkage long compat_sys_stat64(char __user * filename, in compat_sys_stat64() argument
176 int error = vfs_stat(filename, &stat); in compat_sys_stat64()
183 asmlinkage long compat_sys_lstat64(char __user * filename, in compat_sys_lstat64() argument
187 int error = vfs_lstat(filename, &stat); in compat_sys_lstat64()
205 asmlinkage long compat_sys_fstatat64(unsigned int dfd, char __user *filename, in compat_sys_fstatat64() argument
215 error = vfs_lstat_fd(dfd, filename, &stat); in compat_sys_fstatat64()
217 error = vfs_stat_fd(dfd, filename, &stat); in compat_sys_fstatat64()
423 char *filename; in sparc32_execve() local
431 filename = getname(compat_ptr(regs->u_regs[base + UREG_I0])); in sparc32_execve()
432 error = PTR_ERR(filename); in sparc32_execve()
[all …]
/arch/m68knommu/kernel/
Dprocess.c353 char * filename; in sys_execve() local
357 filename = getname(name); in sys_execve()
358 error = PTR_ERR(filename); in sys_execve()
359 if (IS_ERR(filename)) in sys_execve()
361 error = do_execve(filename, argv, envp, regs); in sys_execve()
362 putname(filename); in sys_execve()
/arch/alpha/kernel/
Dprocess.c395 char *filename; in do_sys_execve() local
397 filename = getname(ufilename); in do_sys_execve()
398 error = PTR_ERR(filename); in do_sys_execve()
399 if (IS_ERR(filename)) in do_sys_execve()
401 error = do_execve(filename, argv, envp, regs); in do_sys_execve()
402 putname(filename); in do_sys_execve()
/arch/avr32/oprofile/
Dop_model_avr32.c106 char filename[4]; in avr32_perf_counter_create_files() local
109 snprintf(filename, sizeof(filename), "%u", i); in avr32_perf_counter_create_files()
110 dir = oprofilefs_mkdir(sb, root, filename); in avr32_perf_counter_create_files()
/arch/x86/ia32/
Dsys_ia32.c53 asmlinkage long sys32_truncate64(char __user *filename, in sys32_truncate64() argument
57 return sys_truncate(filename, ((loff_t) offset_high << 32) | offset_low); in sys32_truncate64()
98 asmlinkage long sys32_stat64(char __user *filename, in sys32_stat64() argument
102 int ret = vfs_stat(filename, &stat); in sys32_stat64()
109 asmlinkage long sys32_lstat64(char __user *filename, in sys32_lstat64() argument
113 int ret = vfs_lstat(filename, &stat); in sys32_lstat64()
128 asmlinkage long sys32_fstatat(unsigned int dfd, char __user *filename, in sys32_fstatat() argument
138 error = vfs_lstat_fd(dfd, filename, &stat); in sys32_fstatat()
140 error = vfs_stat_fd(dfd, filename, &stat); in sys32_fstatat()
667 char *filename; in sys32_execve() local
[all …]

123