函数逻辑报告 | 
Source Code:security\selinux\hooks.c | 
Create Date:2022-07-27 20:29:48 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:has_cap_mac_admin
函数原型:static bool has_cap_mac_admin(bool audit)
返回类型:bool
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| bool | audit | 
| 3125 | 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.() | 
| 3126 | opts等于如果audit则Default (no) options for the capable function 否则If capable should audit the security request | 
| 3130 | 如果Check whether a task is allowed to use a capability. 则返回:false | 
| 3132 | 返回:true | 
| 名称 | 描述 | 
|---|---|
| selinux_inode_setxattr | |
| selinux_inode_getsecurity | Copy the inode security context value to the user.* Permission check is handled by selinux_inode_getxattr hook. | 
| selinux_setprocattr | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |