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
144 fmt = check_file(bprm); in load_misc_binary()
153 if (bprm->interp_flags & BINPRM_FLAGS_PATH_INACCESSIBLE) in load_misc_binary()
157 retval = remove_arg_zero(bprm); in load_misc_binary()
163 bprm->have_execfd = 1; in load_misc_binary()
166 retval = copy_string_kernel(bprm->interp, bprm); in load_misc_binary()
169 bprm->argc++; in load_misc_binary()
172 retval = copy_string_kernel(fmt->interpreter, bprm); in load_misc_binary()
175 bprm->argc++; in load_misc_binary()
178 retval = bprm_change_interp(fmt->interpreter, bprm); in load_misc_binary()
193 bprm->interpreter = interp_file; in load_misc_binary()
195 bprm->execfd_creds = 1; in load_misc_binary()