• Home
  • Raw
  • Download

Lines Matching refs:bprm

59 static unsigned long __user *create_aout_tables(char __user *p, struct linux_binprm * bprm)  in create_aout_tables()  argument
64 int argc = bprm->argc; in create_aout_tables()
65 int envc = bprm->envc; in create_aout_tables()
72 if (bprm->loader) { in create_aout_tables()
75 put_user(bprm->loader, --sp); in create_aout_tables()
78 put_user(bprm->exec, --sp); in create_aout_tables()
117 static int load_aout_binary(struct linux_binprm * bprm) in load_aout_binary() argument
126 ex = *((struct exec *) bprm->buf); /* exec-header */ in load_aout_binary()
130 i_size_read(file_inode(bprm->file)) < ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) { in load_aout_binary()
138 if (!bprm->file->f_op->mmap) in load_aout_binary()
154 retval = flush_old_exec(bprm); in load_aout_binary()
160 SET_AOUT_PERSONALITY(bprm, ex); in load_aout_binary()
164 setup_new_exec(bprm); in load_aout_binary()
173 retval = setup_arg_pages(bprm, STACK_TOP, EXSTACK_DEFAULT); in load_aout_binary()
177 install_exec_creds(bprm); in load_aout_binary()
196 error = read_code(bprm->file, text_addr, pos, in load_aout_binary()
211 bprm->file); in load_aout_binary()
214 if (!bprm->file->f_op->mmap||((fd_offset & ~PAGE_MASK) != 0)) { in load_aout_binary()
219 read_code(bprm->file, N_TXTADDR(ex), fd_offset, in load_aout_binary()
224 error = vm_mmap(bprm->file, N_TXTADDR(ex), ex.a_text, in load_aout_binary()
232 error = vm_mmap(bprm->file, N_DATADDR(ex), ex.a_data, in load_aout_binary()
247 (unsigned long) create_aout_tables((char __user *) bprm->p, bprm); in load_aout_binary()
251 finalize_exec(bprm); in load_aout_binary()