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 retval = remove_arg_zero(bprm);
163 bprm->have_execfd = 1;
166 retval = copy_string_kernel(bprm->interp, bprm);
169 bprm->argc++;
172 retval = copy_string_kernel(fmt->interpreter, bprm);
175 bprm->argc++;
178 retval = bprm_change_interp(fmt->interpreter, bprm);
193 bprm->interpreter = interp_file;
195 bprm->execfd_creds = 1;