• Home
  • Raw
  • Download

Lines Matching refs:bprm

144 static unsigned long __user *create_aout_tables(char __user *p, struct linux_binprm * bprm)  in create_aout_tables()  argument
149 int argc = bprm->argc; in create_aout_tables()
150 int envc = bprm->envc; in create_aout_tables()
157 if (bprm->loader) { in create_aout_tables()
160 put_user(bprm->loader, --sp); in create_aout_tables()
163 put_user(bprm->exec, --sp); in create_aout_tables()
202 static int load_aout_binary(struct linux_binprm * bprm) in load_aout_binary() argument
211 ex = *((struct exec *) bprm->buf); /* exec-header */ in load_aout_binary()
215 i_size_read(file_inode(bprm->file)) < ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) { in load_aout_binary()
223 if (!bprm->file->f_op->mmap) in load_aout_binary()
239 retval = flush_old_exec(bprm); in load_aout_binary()
245 SET_AOUT_PERSONALITY(bprm, ex); in load_aout_binary()
249 setup_new_exec(bprm); in load_aout_binary()
258 retval = setup_arg_pages(bprm, STACK_TOP, EXSTACK_DEFAULT); in load_aout_binary()
262 install_exec_creds(bprm); in load_aout_binary()
281 error = read_code(bprm->file, text_addr, pos, in load_aout_binary()
296 bprm->file); in load_aout_binary()
299 if (!bprm->file->f_op->mmap||((fd_offset & ~PAGE_MASK) != 0)) { in load_aout_binary()
301 read_code(bprm->file, N_TXTADDR(ex), fd_offset, in load_aout_binary()
306 error = vm_mmap(bprm->file, N_TXTADDR(ex), ex.a_text, in load_aout_binary()
314 error = vm_mmap(bprm->file, N_DATADDR(ex), ex.a_data, in load_aout_binary()
329 (unsigned long) create_aout_tables((char __user *) bprm->p, bprm); in load_aout_binary()