• Home
  • Raw
  • Download

Lines Matching refs:bprm

84 static Node *check_file(struct linux_binprm *bprm)  in check_file()  argument
86 char *p = strrchr(bprm->interp, '.'); in check_file()
107 s = bprm->buf + e->offset; in check_file()
126 static int load_misc_binary(struct linux_binprm *bprm) in load_misc_binary() argument
141 fmt = check_file(bprm); in load_misc_binary()
149 if (bprm->interp_flags & BINPRM_FLAGS_PATH_INACCESSIBLE) in load_misc_binary()
153 retval = remove_arg_zero(bprm); in load_misc_binary()
169 fd_install(fd_binary, bprm->file); in load_misc_binary()
173 would_dump(bprm, bprm->file); in load_misc_binary()
175 allow_write_access(bprm->file); in load_misc_binary()
176 bprm->file = NULL; in load_misc_binary()
179 bprm->interp_flags |= BINPRM_FLAGS_EXECFD; in load_misc_binary()
180 bprm->interp_data = fd_binary; in load_misc_binary()
183 allow_write_access(bprm->file); in load_misc_binary()
184 fput(bprm->file); in load_misc_binary()
185 bprm->file = NULL; in load_misc_binary()
188 retval = copy_strings_kernel(1, &bprm->interp, bprm); in load_misc_binary()
191 bprm->argc++; in load_misc_binary()
194 retval = copy_strings_kernel(1, &iname_addr, bprm); in load_misc_binary()
197 bprm->argc++; in load_misc_binary()
200 retval = bprm_change_interp(iname, bprm); in load_misc_binary()
209 bprm->file = interp_file; in load_misc_binary()
215 memset(bprm->buf, 0, BINPRM_BUF_SIZE); in load_misc_binary()
216 retval = kernel_read(bprm->file, 0, bprm->buf, BINPRM_BUF_SIZE); in load_misc_binary()
218 retval = prepare_binprm(bprm); in load_misc_binary()
223 retval = search_binary_handler(bprm); in load_misc_binary()
232 bprm->interp_flags = 0; in load_misc_binary()
233 bprm->interp_data = 0; in load_misc_binary()