函数逻辑报告 |
Source Code:security\smack\smack_lsm.c |
Create Date:2022-07-27 20:49:26 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:smack_bprm_set_creds - set creds for exec*@bprm: the exec information* Returns 0 if it gets a blob, -EPERM if exec forbidden and -ENOMEM otherwise
函数原型:static int smack_bprm_set_creds(struct linux_binprm *bprm)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct linux_binprm * | bprm |
906 | inode等于file_inode(file) |
907 | bsp等于smack_cred(w credentials ) |
912 | 如果called_set_creds则返回:0 |
915 | isp等于smack_inode(inode) |
916 | 如果label of the task 恒等于NULL或label of the task 恒等于 label for access control 则返回:0 |
919 | sbsp等于s_security |
920 | 如果smk_flags按位与SMK_SB_UNTRUSTED且label of the task 不等于smk_root则返回:0 |
926 | rc等于0 |
940 | 如果how unsafe this exec is (mask of LSM_UNSAFE_*) 按位与LSM_UNSAFE_PTRACE的反则返回:负EPERM |
944 | s to clear in current->personality 或等于Security-relevant compatibility flags that must be* cleared upon setuid or setgid exec: |
947 | 如果 label for access control 不等于 label when forked 则secureexec等于1 |
950 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |