函数逻辑报告 |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-27 20:30:08 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Copy the inode security context value to the user.* Permission check is handled by selinux_inode_getxattr hook.
函数原型:static int selinux_inode_getsecurity(struct inode *inode, const char *name, void **buffer, bool alloc)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct inode * | inode | |
| const char * | name | |
| void ** | buffer | |
| bool | alloc |
| 3353 | char * context = NULL |
| 3356 | 如果字符串比较则返回:负EOPNOTSUPP |
| 3369 | 如果has_cap_mac_admin(false)则error等于security_sid_to_context_force( & selinux_state, SID of this object , & context, & size) |
| 3373 | 否则error等于security_sid_to_context( & selinux_state, SID of this object , & context, & size) |
| 3379 | 如果alloc则 |
| 3381 | 转到:out_nofree |
| 3383 | 释放内存 |
| 3384 | out_nofree : |
| 3385 | 返回:error |
| 名称 | 描述 |
|---|---|
| selinux_inode_getsecctx |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |