Lines Matching refs:bprm
34 static int load_script(struct linux_binprm *bprm) in load_script() argument
41 if ((bprm->buf[0] != '#') || (bprm->buf[1] != '!')) in load_script()
58 buf_end = bprm->buf + sizeof(bprm->buf) - 1; in load_script()
59 i_end = strnchr(bprm->buf, sizeof(bprm->buf), '\n'); in load_script()
61 i_end = next_non_spacetab(bprm->buf + 2, buf_end); in load_script()
77 i_name = next_non_spacetab(bprm->buf+2, i_end); in load_script()
93 if (bprm->interp_flags & BINPRM_FLAGS_PATH_INACCESSIBLE) in load_script()
106 retval = remove_arg_zero(bprm); in load_script()
109 retval = copy_string_kernel(bprm->interp, bprm); in load_script()
112 bprm->argc++; in load_script()
116 retval = copy_string_kernel(i_arg, bprm); in load_script()
119 bprm->argc++; in load_script()
121 retval = copy_string_kernel(i_name, bprm); in load_script()
124 bprm->argc++; in load_script()
125 retval = bprm_change_interp(i_name, bprm); in load_script()
136 bprm->interpreter = file; in load_script()