Lines Matching refs:bprm

50 static int load_elf_binary(struct linux_binprm *bprm);
151 create_elf_tables(struct linux_binprm *bprm, struct elfhdr *exec, in create_elf_tables() argument
154 unsigned long p = bprm->p; in create_elf_tables()
155 int argc = bprm->argc; in create_elf_tables()
156 int envc = bprm->envc; in create_elf_tables()
248 NEW_AUX_ENT(AT_SECURE, security_bprm_secureexec(bprm)); in create_elf_tables()
253 NEW_AUX_ENT(AT_EXECFN, bprm->exec); in create_elf_tables()
262 if (bprm->interp_flags & BINPRM_FLAGS_EXECFD) { in create_elf_tables()
263 NEW_AUX_ENT(AT_EXECFD, bprm->interp_data); in create_elf_tables()
276 bprm->p = STACK_ROUND(sp, items); in create_elf_tables()
280 sp = (elf_addr_t __user *)bprm->p - items - ei_index; in create_elf_tables()
281 bprm->exec = (unsigned long)sp; /* XXX: PARISC HACK */ in create_elf_tables()
283 sp = (elf_addr_t __user *)bprm->p; in create_elf_tables()
291 vma = find_extend_vma(current->mm, bprm->p); in create_elf_tables()
665 static int load_elf_binary(struct linux_binprm *bprm) in load_elf_binary() argument
694 loc->elf_ex = *((struct elfhdr *)bprm->buf); in load_elf_binary()
705 if (!bprm->file->f_op->mmap) in load_elf_binary()
708 elf_phdata = load_elf_phdrs(&loc->elf_ex, bprm->file); in load_elf_binary()
738 retval = kernel_read(bprm->file, elf_ppnt->p_offset, in load_elf_binary()
761 would_dump(bprm, interpreter); in load_elf_binary()
790 bprm->file, false, in load_elf_binary()
837 retval = flush_old_exec(bprm); in load_elf_binary()
850 setup_new_exec(bprm); in load_elf_binary()
854 retval = setup_arg_pages(bprm, randomize_stack_top(STACK_TOP), in load_elf_binary()
859 current->mm->start_stack = bprm->p; in load_elf_binary()
927 error = elf_map(bprm->file, load_bias + vaddr, elf_ppnt, in load_elf_binary()
1037 retval = arch_setup_additional_pages(bprm, !!elf_interpreter); in load_elf_binary()
1042 install_exec_creds(bprm); in load_elf_binary()
1043 retval = create_elf_tables(bprm, &loc->elf_ex, in load_elf_binary()
1052 current->mm->start_stack = bprm->p; in load_elf_binary()
1085 start_thread(regs, elf_entry, bprm->p); in load_elf_binary()