Lines Matching refs:bprm
90 static Node *check_file(struct linux_binprm *bprm)
92 char *p = strrchr(bprm->interp, '.');
113 s = bprm->buf + e->offset;
132 static int load_misc_binary(struct linux_binprm *bprm)
144 fmt = check_file(bprm);
153 if (bprm->interp_flags & BINPRM_FLAGS_PATH_INACCESSIBLE)
157 bprm->interp_flags |= BINPRM_FLAGS_PRESERVE_ARGV0;
159 retval = remove_arg_zero(bprm);
165 bprm->have_execfd = 1;
168 retval = copy_string_kernel(bprm->interp, bprm);
171 bprm->argc++;
174 retval = copy_string_kernel(fmt->interpreter, bprm);
177 bprm->argc++;
180 retval = bprm_change_interp(fmt->interpreter, bprm);
195 bprm->interpreter = interp_file;
197 bprm->execfd_creds = 1;