.. | .. |
---|
19 | 19 | if (bprm->loader) |
---|
20 | 20 | return -ENOEXEC; |
---|
21 | 21 | |
---|
22 | | - allow_write_access(bprm->file); |
---|
23 | | - fput(bprm->file); |
---|
24 | | - bprm->file = NULL; |
---|
25 | | - |
---|
26 | 22 | loader = bprm->vma->vm_end - sizeof(void *); |
---|
27 | 23 | |
---|
28 | 24 | file = open_exec("/sbin/loader"); |
---|
.. | .. |
---|
33 | 29 | /* Remember if the application is TASO. */ |
---|
34 | 30 | bprm->taso = eh->ah.entry < 0x100000000UL; |
---|
35 | 31 | |
---|
36 | | - bprm->file = file; |
---|
| 32 | + bprm->interpreter = file; |
---|
37 | 33 | bprm->loader = loader; |
---|
38 | | - retval = prepare_binprm(bprm); |
---|
39 | | - if (retval < 0) |
---|
40 | | - return retval; |
---|
41 | | - return search_binary_handler(bprm); |
---|
| 34 | + return 0; |
---|
42 | 35 | } |
---|
43 | 36 | |
---|
44 | 37 | static struct linux_binfmt loader_format = { |
---|