• Home
  • Raw
  • Download

Lines Matching refs:bprm

182 static int load_elf_fdpic_binary(struct linux_binprm *bprm)  in load_elf_fdpic_binary()  argument
205 exec_params.hdr = *(struct elfhdr *) bprm->buf; in load_elf_fdpic_binary()
210 if (!is_elf(&exec_params.hdr, bprm->file)) in load_elf_fdpic_binary()
224 retval = elf_fdpic_fetch_phdrs(&exec_params, bprm->file); in load_elf_fdpic_binary()
247 retval = kernel_read(bprm->file, interpreter_name, in load_elf_fdpic_binary()
274 would_dump(bprm, interpreter); in load_elf_fdpic_binary()
277 retval = kernel_read(interpreter, bprm->buf, in load_elf_fdpic_binary()
285 interp_params.hdr = *((struct elfhdr *) bprm->buf); in load_elf_fdpic_binary()
341 retval = flush_old_exec(bprm); in load_elf_fdpic_binary()
355 setup_new_exec(bprm); in load_elf_fdpic_binary()
373 retval = setup_arg_pages(bprm, current->mm->start_stack, in load_elf_fdpic_binary()
378 retval = arch_setup_additional_pages(bprm, !!interpreter_name); in load_elf_fdpic_binary()
385 retval = elf_fdpic_map_file(&exec_params, bprm->file, current->mm, in load_elf_fdpic_binary()
437 install_exec_creds(bprm); in load_elf_fdpic_binary()
438 if (create_elf_fdpic_tables(bprm, current->mm, in load_elf_fdpic_binary()
462 finalize_exec(bprm); in load_elf_fdpic_binary()
497 static int create_elf_fdpic_tables(struct linux_binprm *bprm, in create_elf_fdpic_tables() argument
517 sp = arch_align_stack(bprm->p); in create_elf_fdpic_tables()
522 if (transfer_args_to_stack(bprm, &sp) < 0) in create_elf_fdpic_tables()
592 if (bprm->interp_flags & BINPRM_FLAGS_EXECFD) in create_elf_fdpic_tables()
597 sp -= (bprm->envc + 1) * sizeof(char *); /* envv[] */ in create_elf_fdpic_tables()
598 sp -= (bprm->argc + 1) * sizeof(char *); /* argv[] */ in create_elf_fdpic_tables()
632 if (bprm->interp_flags & BINPRM_FLAGS_EXECFD) { in create_elf_fdpic_tables()
635 NEW_AUX_ENT(AT_EXECFD, bprm->interp_data); in create_elf_fdpic_tables()
656 NEW_AUX_ENT(AT_SECURE, bprm->secureexec); in create_elf_fdpic_tables()
657 NEW_AUX_ENT(AT_EXECFN, bprm->exec); in create_elf_fdpic_tables()
671 csp -= (bprm->envc + 1) * sizeof(elf_caddr_t); in create_elf_fdpic_tables()
673 csp -= (bprm->argc + 1) * sizeof(elf_caddr_t); in create_elf_fdpic_tables()
678 __put_user(bprm->argc, (unsigned long __user *) csp); in create_elf_fdpic_tables()
684 current->mm->arg_start = bprm->p; in create_elf_fdpic_tables()
687 (MAX_ARG_PAGES * PAGE_SIZE - bprm->p); in create_elf_fdpic_tables()
691 for (loop = bprm->argc; loop > 0; loop--) { in create_elf_fdpic_tables()
703 for (loop = bprm->envc; loop > 0; loop--) { in create_elf_fdpic_tables()