Lines Matching defs:bprm
82 * search_binfmt_handler - search for a binary handler for @bprm
84 * @bprm: binary for which we are looking for a handler
86 * Search for a binary type handler for @bprm in the list of registered binary
92 struct linux_binprm *bprm)
94 char *p = strrchr(bprm->interp, '.');
114 s = bprm->buf + e->offset;
134 * @bprm: binary for which we are looking for a handler
142 struct linux_binprm *bprm)
147 e = search_binfmt_handler(misc, bprm);
203 static int load_misc_binary(struct linux_binprm *bprm)
214 fmt = get_binfmt_handler(misc, bprm);
220 if (bprm->interp_flags & BINPRM_FLAGS_PATH_INACCESSIBLE)
224 bprm->interp_flags |= BINPRM_FLAGS_PRESERVE_ARGV0;
226 retval = remove_arg_zero(bprm);
232 bprm->have_execfd = 1;
235 retval = copy_string_kernel(bprm->interp, bprm);
238 bprm->argc++;
241 retval = copy_string_kernel(fmt->interpreter, bprm);
244 bprm->argc++;
247 retval = bprm_change_interp(fmt->interpreter, bprm);
262 bprm->interpreter = interp_file;
264 bprm->execfd_creds = 1;