Lines Matching refs:bprm
90 static Node *check_file(struct linux_binprm *bprm) in check_file() argument
92 char *p = strrchr(bprm->interp, '.'); in check_file()
113 s = bprm->buf + e->offset; in check_file()
132 static int load_misc_binary(struct linux_binprm *bprm) in load_misc_binary() argument
145 fmt = check_file(bprm); in load_misc_binary()
154 if (bprm->interp_flags & BINPRM_FLAGS_PATH_INACCESSIBLE) in load_misc_binary()
158 retval = remove_arg_zero(bprm); in load_misc_binary()
174 fd_install(fd_binary, bprm->file); in load_misc_binary()
178 would_dump(bprm, bprm->file); in load_misc_binary()
180 allow_write_access(bprm->file); in load_misc_binary()
181 bprm->file = NULL; in load_misc_binary()
184 bprm->interp_flags |= BINPRM_FLAGS_EXECFD; in load_misc_binary()
185 bprm->interp_data = fd_binary; in load_misc_binary()
188 allow_write_access(bprm->file); in load_misc_binary()
189 fput(bprm->file); in load_misc_binary()
190 bprm->file = NULL; in load_misc_binary()
193 retval = copy_strings_kernel(1, &bprm->interp, bprm); in load_misc_binary()
196 bprm->argc++; in load_misc_binary()
199 retval = copy_strings_kernel(1, &fmt->interpreter, bprm); in load_misc_binary()
202 bprm->argc++; in load_misc_binary()
205 retval = bprm_change_interp(fmt->interpreter, bprm); in load_misc_binary()
220 bprm->file = interp_file; in load_misc_binary()
228 memset(bprm->buf, 0, BINPRM_BUF_SIZE); in load_misc_binary()
229 retval = kernel_read(bprm->file, bprm->buf, BINPRM_BUF_SIZE, in load_misc_binary()
232 retval = prepare_binprm(bprm); in load_misc_binary()
237 retval = search_binary_handler(bprm); in load_misc_binary()
247 bprm->interp_flags = 0; in load_misc_binary()
248 bprm->interp_data = 0; in load_misc_binary()