函数逻辑报告 |
Source Code:fs\binfmt_script.c |
Create Date:2022-07-29 11:02:20 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:load_script
函数原型:static int load_script(struct linux_binprm *bprm)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct linux_binprm * | bprm |
| 51 | 如果interp_flags按位与BINPRM_FLAGS_PATH_INACCESSIBLE则返回:负ENOENT |
| 57 | file = NULL |
| 75 | 如果非cp则 |
| 76 | cp等于next_non_spacetab(buf + 2, buf_end) |
| 83 | 如果非next_terminator(cp, buf_end)则返回:负ENOEXEC |
| 88 | cp等于'\0' |
| 98 | 返回:负ENOEXEC |
| 100 | i_arg = NULL |
| 104 | cp自加等于'\0' |
| 117 | retval等于Arguments are '\0' separated strings found at the location bprm->p* points to; chop off the first by relocating brpm->p to right after* the first '\0' encountered. |
| 123 | argc自加 |
| 124 | 如果i_arg则 |
| 128 | argc自加 |
| 133 | argc自加 |
| 134 | retval等于bprm_change_interp(i_name, bprm) |
| 146 | retval等于Fill the binprm structure from the inode.* Check permissions, then read the first BINPRM_BUF_SIZE bytes* This may be called multiple times for binary chains (scripts for example). |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |