函数逻辑报告 | 
Source Code:security\selinux\hooks.c | 
Create Date:2022-07-27 20:29:56 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:selinux_inode_setxattr
函数原型:static int selinux_inode_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct dentry * | dentry | |
| const char * | name | |
| const void * | value | |
| size_t | size | |
| int | flags | 
| 3143 | rc等于0 | 
| 3145 | 如果字符串比较则 | 
| 3155 | 如果非initialized则返回:如果inode_owner_or_capable(inode)则0否则负EPERM | 
| 3158 | sbsec等于s_security | 
| 3159 | 如果非 which mount options were specified 按位与SBLABEL_MNT的值则返回:负EOPNOTSUPP | 
| 3162 | 如果非inode_owner_or_capable(inode)则返回:负EPERM | 
| 3165 | type等于LSM_AUDIT_DATA_DENTRY | 
| 3175 | rc等于security_context_to_sid( & selinux_state, value, size, & newsid, GFP_KERNEL) | 
| 3178 | 如果非has_cap_mac_admin(true)则 | 
| 3202 | rc等于security_context_to_sid_force( & selinux_state, value, size, & newsid) | 
| 3214 | rc等于security_validate_transition( & selinux_state, SID of this object , newsid, sid, security class of this object ) | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |