Searched refs:bprm (Results 1 - 23 of 23) sorted by relevance

/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/
H A Dbinfmt_script.c17 static int load_script(struct linux_binprm *bprm,struct pt_regs *regs) argument
24 if ((bprm->buf[0] != '#') || (bprm->buf[1] != '!') || (bprm->sh_bang))
31 bprm->sh_bang++;
32 allow_write_access(bprm->file);
33 fput(bprm->file);
34 bprm->file = NULL;
36 bprm->buf[BINPRM_BUF_SIZE - 1] = '\0';
37 if ((cp = strchr(bprm
[all...]
H A Dbinfmt_em86.c26 static int load_em86(struct linux_binprm *bprm,struct pt_regs *regs) argument
34 elf_ex = *((struct elfhdr *)bprm->buf);
42 (!bprm->file->f_op || !bprm->file->f_op->mmap)) {
46 bprm->sh_bang++; /* Well, the bang-shell is implicit... */
47 allow_write_access(bprm->file);
48 fput(bprm->file);
49 bprm->file = NULL;
66 remove_arg_zero(bprm);
67 retval = copy_strings_kernel(1, &bprm
[all...]
H A Dexec.c183 int copy_strings(int argc,char ** argv, struct linux_binprm *bprm) argument
195 !(len = strnlen_user(str, bprm->p))) {
200 if (bprm->p < len) {
205 bprm->p -= len;
206 pos = bprm->p;
215 page = bprm->page[i];
219 bprm->page[i] = page;
263 int copy_strings_kernel(int argc,char ** argv, struct linux_binprm *bprm) argument
268 r = copy_strings(argc, argv, bprm);
314 int setup_arg_pages(struct linux_binprm *bprm) argument
550 flush_old_exec(struct linux_binprm * bprm) argument
628 prepare_binprm(struct linux_binprm *bprm) argument
702 compute_creds(struct linux_binprm *bprm) argument
754 remove_arg_zero(struct linux_binprm *bprm) argument
781 search_binary_handler(struct linux_binprm *bprm,struct pt_regs *regs) argument
877 struct linux_binprm bprm; local
[all...]
H A Dbinfmt_som.c39 static int load_som_binary(struct linux_binprm * bprm, struct pt_regs * regs);
61 static void create_som_tables(struct linux_binprm *bprm) argument
64 int argc = bprm->argc;
65 int envc = bprm->envc;
70 sp = (unsigned long *)((bprm->p + 3) & ~3);
82 bprm->p = (unsigned long) sp;
182 do_load_som_binary(struct linux_binprm * bprm, struct pt_regs * regs) argument
192 som_ex = (struct som_hdr *) bprm->buf;
208 retval = kernel_read(bprm->file, som_ex->aux_header_location,
216 get_file(bprm
272 load_som_binary(struct linux_binprm * bprm, struct pt_regs * regs) argument
[all...]
H A Dbinfmt_aout.c192 static unsigned long * create_aout_tables(char * p, struct linux_binprm * bprm) argument
196 int argc = bprm->argc;
197 int envc = bprm->envc;
209 if (bprm->loader) {
212 put_user(bprm->loader, --sp);
215 put_user(bprm->exec, --sp);
254 static int load_aout_binary(struct linux_binprm * bprm, struct pt_regs * regs) argument
262 ex = *((struct exec *) bprm->buf); /* exec-header */
266 bprm->file->f_dentry->d_inode->i_size < ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) {
283 retval = flush_old_exec(bprm);
[all...]
H A Dbinfmt_misc.c58 static Node *check_file(struct linux_binprm *bprm) argument
60 char *p = strrchr(bprm->filename, '.');
77 s = bprm->buf + e->offset;
96 static int load_misc_binary(struct linux_binprm *bprm, struct pt_regs *regs) argument
110 fmt = check_file(bprm);
119 allow_write_access(bprm->file);
120 fput(bprm->file);
121 bprm->file = NULL;
124 remove_arg_zero(bprm);
125 retval = copy_strings_kernel(1, &bprm
[all...]
H A Dbinfmt_elf.c45 static int load_elf_binary(struct linux_binprm * bprm, struct pt_regs * regs);
427 static int load_elf_binary(struct linux_binprm * bprm, struct pt_regs * regs) argument
449 elf_ex = *((struct elfhdr *) bprm->buf);
460 if (!bprm->file->f_op||!bprm->file->f_op->mmap)
475 retval = kernel_read(bprm->file, elf_ex.e_phoff, (char *) elf_phdata, size);
482 get_file(bprm->file);
483 fd_install(elf_exec_fileno = retval, bprm->file);
509 retval = kernel_read(bprm->file, elf_ppnt->p_offset,
528 retval = kernel_read(interpreter, 0, bprm
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/s390x/kernel/
H A Dexec32.c40 int setup_arg_pages32(struct linux_binprm *bprm) argument
48 bprm->p += stack_base;
49 if (bprm->loader)
50 bprm->loader += stack_base;
51 bprm->exec += stack_base;
60 mpnt->vm_start = PAGE_MASK & (unsigned long) bprm->p;
73 struct page *page = bprm->page[i];
75 bprm->page[i] = NULL;
H A Dbinfmt_elf32.c112 int setup_arg_pages32(struct linux_binprm *bprm);
177 #define setup_arg_pages(bprm) setup_arg_pages32(bprm)
H A Dlinux32.c2847 static int copy_strings32(int argc, u32 * argv, struct linux_binprm *bprm) argument
2856 !(len = strnlen_user((char *)A(str), bprm->p)))
2859 if (bprm->p < len)
2862 bprm->p -= len;
2864 pos = bprm->p;
2871 page = bprm->page[pos / PAGE_SIZE];
2875 bprm->page[pos / PAGE_SIZE] = page;
2914 struct linux_binprm bprm; local
2919 bprm.p = PAGE_SIZE*MAX_ARG_PAGES-sizeof(void *);
2920 memset(bprm
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/linux/
H A Dbinfmts.h54 extern int flush_old_exec(struct linux_binprm * bprm);
55 extern int setup_arg_pages(struct linux_binprm * bprm);
56 extern int copy_strings(int argc,char ** argv,struct linux_binprm *bprm);
57 extern int copy_strings_kernel(int argc,char ** argv,struct linux_binprm *bprm);
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/
H A Dbinfmts.h54 extern int flush_old_exec(struct linux_binprm * bprm);
55 extern int setup_arg_pages(struct linux_binprm * bprm);
56 extern int copy_strings(int argc,char ** argv,struct linux_binprm *bprm);
57 extern int copy_strings_kernel(int argc,char ** argv,struct linux_binprm *bprm);
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/sparc64/kernel/
H A Dbinfmt_aout32.c152 static u32 *create_aout32_tables(char * p, struct linux_binprm * bprm) argument
156 int argc = bprm->argc;
157 int envc = bprm->envc;
198 static int load_aout32_binary(struct linux_binprm * bprm, struct pt_regs * regs) argument
207 ex = *((struct exec *) bprm->buf); /* exec-header */
211 bprm->file->f_dentry->d_inode->i_size < ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) {
228 retval = flush_old_exec(bprm);
244 compute_creds(bprm);
250 bprm->file->f_op->read(bprm
[all...]
H A Dsys_sparc32.c3038 static int copy_strings32(int argc, u32 * argv, struct linux_binprm *bprm) argument
3047 !(len = strnlen_user((char *)A(str), bprm->p)))
3050 if (bprm->p < len)
3053 bprm->p -= len;
3055 pos = bprm->p;
3062 page = bprm->page[pos / PAGE_SIZE];
3066 bprm->page[pos / PAGE_SIZE] = page;
3104 struct linux_binprm bprm; local
3109 bprm.p = PAGE_SIZE*MAX_ARG_PAGES-sizeof(void *);
3110 memset(bprm
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/ia64/ia32/
H A Dbinfmt_elf32.c48 #define setup_arg_pages(bprm) ia32_setup_arg_pages(bprm)
161 ia32_setup_arg_pages (struct linux_binprm *bprm) argument
169 bprm->p += stack_base;
170 if (bprm->loader)
171 bprm->loader += stack_base;
172 bprm->exec += stack_base;
181 mpnt->vm_start = PAGE_MASK & (unsigned long) bprm->p;
194 struct page *page = bprm->page[i];
196 bprm
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/x86_64/ia32/
H A Dia32_binfmt.c164 #define setup_arg_pages(bprm) ia32_setup_arg_pages(bprm)
192 int ia32_setup_arg_pages(struct linux_binprm *bprm);
218 int ia32_setup_arg_pages(struct linux_binprm *bprm) argument
226 bprm->p += stack_base;
227 if (bprm->loader)
228 bprm->loader += stack_base;
229 bprm->exec += stack_base;
238 mpnt->vm_start = PAGE_MASK & (unsigned long) bprm->p;
251 struct page *page = bprm
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/mips/kernel/
H A Dirixelf.c44 static int load_irix_binary(struct linux_binprm * bprm, struct pt_regs * regs);
391 static int verify_binary(struct elfhdr *ehp, struct linux_binprm *bprm) argument
398 !irix_elf_check_arch(ehp) || !bprm->file->f_op->mmap) {
421 struct linux_binprm *bprm, int pnum)
443 retval = kernel_read(bprm->file, epp->p_offset, (*name + 16),
453 retval = kernel_read(file, 0, bprm->buf, 128);
457 *interp_elf_ex = *(struct elfhdr *) bprm->buf;
582 static int load_irix_binary(struct linux_binprm * bprm, struct pt_regs * regs) argument
597 elf_ex = *((struct elfhdr *) bprm->buf);
600 if (verify_binary(&elf_ex, bprm))
417 look_for_irix_interpreter(char **name, struct file **interpreter, struct elfhdr *interp_elf_ex, struct elf_phdr *epp, struct linux_binprm *bprm, int pnum) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/parisc/kernel/
H A Dsys_parisc32.c107 static int copy_strings32(int argc, u32 *argv, struct linux_binprm *bprm) argument
116 !(len = strnlen_user((char *)A(str), bprm->p)))
119 if (bprm->p < len)
122 bprm->p -= len;
124 pos = bprm->p;
133 page = bprm->page[i];
137 bprm->page[i] = page;
176 struct linux_binprm bprm; local
187 bprm.p = PAGE_SIZE*MAX_ARG_PAGES-sizeof(void *);
188 memset(bprm
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/ppc64/kernel/
H A Dsys_ppc32.c3798 static int copy_strings32(int argc, u32 * argv, struct linux_binprm *bprm) argument
3807 !(len = strnlen_user((char *)A(str), bprm->p)))
3810 if (bprm->p < len)
3813 bprm->p -= len;
3815 pos = bprm->p;
3822 page = bprm->page[pos / PAGE_SIZE];
3826 bprm->page[pos / PAGE_SIZE] = page;
3864 struct linux_binprm bprm; local
3869 bprm.p = PAGE_SIZE*MAX_ARG_PAGES-sizeof(void *);
3870 memset(bprm
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-parisc/
H A Dprocessor.h203 |---------------------------------| (bprm->p)
216 |---------------------------------| <- bprm->exec (HACK!)
255 elf_caddr_t *argv = (elf_caddr_t *)bprm->exec + 1; \
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-parisc/
H A Dprocessor.h203 |---------------------------------| (bprm->p)
216 |---------------------------------| <- bprm->exec (HACK!)
255 elf_caddr_t *argv = (elf_caddr_t *)bprm->exec + 1; \
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-ia64/
H A Dia32.h482 extern int ia32_setup_arg_pages (struct linux_binprm *bprm);
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-ia64/
H A Dia32.h482 extern int ia32_setup_arg_pages (struct linux_binprm *bprm);

Completed in 134 milliseconds