Lines Matching refs:bprm

49 static int load_elf_binary(struct linux_binprm *bprm);
150 create_elf_tables(struct linux_binprm *bprm, struct elfhdr *exec, in create_elf_tables() argument
153 unsigned long p = bprm->p; in create_elf_tables()
154 int argc = bprm->argc; in create_elf_tables()
155 int envc = bprm->envc; in create_elf_tables()
247 NEW_AUX_ENT(AT_SECURE, security_bprm_secureexec(bprm)); in create_elf_tables()
252 NEW_AUX_ENT(AT_EXECFN, bprm->exec); in create_elf_tables()
261 if (bprm->interp_flags & BINPRM_FLAGS_EXECFD) { in create_elf_tables()
262 NEW_AUX_ENT(AT_EXECFD, bprm->interp_data); in create_elf_tables()
275 bprm->p = STACK_ROUND(sp, items); in create_elf_tables()
279 sp = (elf_addr_t __user *)bprm->p - items - ei_index; in create_elf_tables()
280 bprm->exec = (unsigned long)sp; /* XXX: PARISC HACK */ in create_elf_tables()
282 sp = (elf_addr_t __user *)bprm->p; in create_elf_tables()
290 vma = find_extend_vma(current->mm, bprm->p); in create_elf_tables()
664 static int load_elf_binary(struct linux_binprm *bprm) in load_elf_binary() argument
693 loc->elf_ex = *((struct elfhdr *)bprm->buf); in load_elf_binary()
704 if (!bprm->file->f_op->mmap) in load_elf_binary()
707 elf_phdata = load_elf_phdrs(&loc->elf_ex, bprm->file); in load_elf_binary()
737 retval = kernel_read(bprm->file, elf_ppnt->p_offset, in load_elf_binary()
760 would_dump(bprm, interpreter); in load_elf_binary()
762 retval = kernel_read(interpreter, 0, bprm->buf, in load_elf_binary()
771 loc->interp_elf_ex = *((struct elfhdr *)bprm->buf); in load_elf_binary()
789 bprm->file, false, in load_elf_binary()
836 retval = flush_old_exec(bprm); in load_elf_binary()
849 setup_new_exec(bprm); in load_elf_binary()
853 retval = setup_arg_pages(bprm, randomize_stack_top(STACK_TOP), in load_elf_binary()
858 current->mm->start_stack = bprm->p; in load_elf_binary()
926 error = elf_map(bprm->file, load_bias + vaddr, elf_ppnt, in load_elf_binary()
1036 retval = arch_setup_additional_pages(bprm, !!elf_interpreter); in load_elf_binary()
1041 install_exec_creds(bprm); in load_elf_binary()
1042 retval = create_elf_tables(bprm, &loc->elf_ex, in load_elf_binary()
1051 current->mm->start_stack = bprm->p; in load_elf_binary()
1084 start_thread(regs, elf_entry, bprm->p); in load_elf_binary()