函数逻辑报告 |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-27 20:29:59 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:selinux_inode_post_setxattr
函数原型:static void selinux_inode_post_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct dentry * | dentry | |
| const char * | name | |
| const void * | value | |
| size_t | size | |
| int | flags |
| 3236 | 如果字符串比较则 |
| 3238 | 返回 |
| 3241 | 如果非initialized则 |
| 3247 | 返回 |
| 3250 | rc等于security_context_to_sid_force( & selinux_state, value, size, & newsid) |
| 3252 | 如果rc则 |
| 3253 | 打印错误信息("SELinux: unable to map context to SIDfor (%s, %lu), rc=%d\n", s_id, Stat data, not accessed from path walking , - rc) |
| 3256 | 返回 |
| 3260 | 加自旋锁 |
| 3262 | SID of this object 等于newsid |
| 3263 | initialization flag 等于 initialized |
| 3264 | 自旋锁解锁 |
| 3266 | 返回 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |