• Home
  • Raw
  • Download

Lines Matching refs:bprm

60 static int load_elf_binary(struct linux_binprm *bprm);
164 create_elf_tables(struct linux_binprm *bprm, struct elfhdr *exec, in create_elf_tables() argument
167 unsigned long p = bprm->p; in create_elf_tables()
168 int argc = bprm->argc; in create_elf_tables()
169 int envc = bprm->envc; in create_elf_tables()
259 NEW_AUX_ENT(AT_SECURE, bprm->secureexec); in create_elf_tables()
264 NEW_AUX_ENT(AT_EXECFN, bprm->exec); in create_elf_tables()
273 if (bprm->interp_flags & BINPRM_FLAGS_EXECFD) { in create_elf_tables()
274 NEW_AUX_ENT(AT_EXECFD, bprm->interp_data); in create_elf_tables()
287 bprm->p = STACK_ROUND(sp, items); in create_elf_tables()
291 sp = (elf_addr_t __user *)bprm->p - items - ei_index; in create_elf_tables()
292 bprm->exec = (unsigned long)sp; /* XXX: PARISC HACK */ in create_elf_tables()
294 sp = (elf_addr_t __user *)bprm->p; in create_elf_tables()
302 vma = find_extend_vma(current->mm, bprm->p); in create_elf_tables()
673 static int load_elf_binary(struct linux_binprm *bprm) in load_elf_binary() argument
702 loc->elf_ex = *((struct elfhdr *)bprm->buf); in load_elf_binary()
715 if (!bprm->file->f_op->mmap) in load_elf_binary()
718 elf_phdata = load_elf_phdrs(&loc->elf_ex, bprm->file); in load_elf_binary()
744 retval = kernel_read(bprm->file, elf_interpreter, in load_elf_binary()
766 would_dump(bprm, interpreter); in load_elf_binary()
797 bprm->file, false, in load_elf_binary()
847 retval = flush_old_exec(bprm); in load_elf_binary()
860 setup_new_exec(bprm); in load_elf_binary()
861 install_exec_creds(bprm); in load_elf_binary()
865 retval = setup_arg_pages(bprm, randomize_stack_top(STACK_TOP), in load_elf_binary()
983 error = elf_map(bprm->file, load_bias + vaddr, elf_ppnt, in load_elf_binary()
1094 retval = arch_setup_additional_pages(bprm, !!interpreter); in load_elf_binary()
1099 retval = create_elf_tables(bprm, &loc->elf_ex, in load_elf_binary()
1107 current->mm->start_stack = bprm->p; in load_elf_binary()
1153 finalize_exec(bprm); in load_elf_binary()
1154 start_thread(regs, elf_entry, bprm->p); in load_elf_binary()