函数逻辑报告 |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-27 20:28:44 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:selinux_bprm_set_creds
函数原型:static int selinux_bprm_set_creds(struct linux_binprm *bprm)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct linux_binprm * | bprm |
2335 | inode等于file_inode(file) |
2340 | 如果called_set_creds则返回:0 |
2343 | old_tsec等于selinux_cred(current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.()) |
2344 | new_tsec等于selinux_cred(w credentials ) |
2348 | current SID 等于 current SID |
2349 | SID prior to last execve 等于 current SID |
2352 | fscreate SID 等于0 |
2353 | keycreate SID 等于0 |
2354 | fscreate SID 等于0 |
2356 | 如果 exec SID 则 |
2365 | 否则 |
2367 | rc等于security_transition_sid( & selinux_state, current SID , SID of this object , SECCLASS_PROCESS, NULL, & current SID ) |
2377 | rc等于check_nnp_nosuid(bprm, old_tsec, new_tsec) |
2378 | 如果rc则 current SID 等于 current SID |
2382 | type等于LSM_AUDIT_DATA_FILE |
2385 | 如果 current SID 恒等于 current SID 则 |
2391 | 否则 |
2430 | s to clear in current->personality 或等于Security-relevant compatibility flags that must be* cleared upon setuid or setgid exec: |
2439 | secureexec或等于非非rc |
2442 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |